title: have to press command button twice
body: <p>I'm working on building a web page and notice now that I have to press the command button twice. Any command button has the same problem, so I figured I would add and action listener on one of them to see if I could see something.</p>
  
  <pre><code>&lt;h:form id="formP"&gt;
      &lt;p:commandButton id="temp" value="photos" actionListener="#{viewBacking.debugBreakpoint()}" action="userPhoto" /&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>The backing bean has</p>
  
  <pre><code>public void debugBreakpoint() {
      int i = 0;
      i++;
  }
  </code></pre>
  
  <p>Unfortunately, this does help. It hits my breakpoint only after the second press. I suspect that some field somewhere isn't passing validation but I would like some method of detecting what exactly is going wrong - why do I need the second push? Is there some option I can turn on in Glassfish, or something else where I can look at a dump of debug information? I can ignore the dump until everything is stable and then see what exactly is happening when I press the button for the first time.</p>
  
  <p>Is there any such tool which I can use?</p>