title: JSF action never triggered on h:commandButton (with f:ajax)
body: <p>I read a lot about f:ajax working with other jsf or html tags but it doesn't seem to be enough!</p>
  
  <p>I have a commandButton with a (necessary?) f:ajax tag in my page and the action is never triggered. Here is the code.</p>
  
  <pre><code>&lt;html&gt;
    &lt;h:head&gt;
    &lt;/h:head&gt;
  
    &lt;h:body&gt;
      &lt;h:form&gt;
        &lt;h:commandButton action="#{bean.myFirstFunction}" value="Submit"&gt;
          &lt;f:ajax render=":wrap" /&gt;
        &lt;/h:commandButton&gt;
      &lt;/h:form&gt;
  
      &lt;h:panelGroup id="wrap"&gt;
        &lt;h:panelGroup id="content" rendered="#{bean.myVariable != null}"&gt;
  
         &lt;h:form&gt;
           &lt;h:commandButton action="#{bean.mySecondFunction}" value="Submit"&gt;
             &lt;f:ajax render=":wrap" /&gt;
           &lt;/h:commandButton&gt;
         &lt;/h:form&gt;
  
        &lt;/h:panelGroup&gt;
      &lt;/panelGroup&gt;
    &lt;h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So like above I got two button, the first one out of the wrap works and it must show the wrap panel which is hidden at the beginning. The second one is in the wrap and must launch a completely different action. (the wrap must stay showed)</p>
  
  <p>Here is the bean.</p>
  
  <pre><code>@ManagedBean(name = "bean")
  @ViewScoped
  public class myBean {
    private Object myVariable;
  
    public void setMyVariable(Object o) { ... }
    public Object getMyVariable() { ... }
  
    @PostConstruct
    public void init() {
      this.myVariable = null;
    }
  
    public void myFirstFonction() {
      this.myVariable = new Object();
    }
  
    public void mySecondAction() {
      System.out.println("here");
    }
  }
  </code></pre>
  
  <p>When I launch, I see the first button. I click it and the second appears. (so the first function is called, the object is instantiated and with the ajax tag the wrap is rendered.
  However, when the second button is clicked, nothing happens.</p>
  
  <p>I have written just a part of my code I hope the mistake is here.</p>
  
  <p>I think it's about the rendered option of the panel group but I can't locate it precisely.</p>
  
  <p>Thanks </p>