title: h:commandButton/h:commandLink does not work on first click, works only on second click
body: <p>We have an ajax navigation menu which updates a dynamic include. The include files have each their own forms.</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;h:commandButton value="Add" action="#{navigator.setUrl('AddUser')}"&gt;
          &lt;f:ajax render=":propertiesArea" /&gt;
      &lt;/h:commandButton&gt;
  &lt;/h:form&gt;
  &lt;h:panelGroup id="propertiesArea" layout="block"&gt;
      &lt;ui:include src="#{navigator.selectedLevel.url}" /&gt;
  &lt;/h:panelGroup&gt;
  </code></pre>
  
  <p>It works correctly, but any command button in the include file doesn't work on first click. It works only on second click and forth.</p>
  
  <p>I found this question <a href="https://stackoverflow.com/questions/2118656/hcommandlink-hcommandbutton-is-not-being-invoked/2120183#2120183">commandButton/commandLink/ajax action/listener method not invoked or input value not updated</a> and my problem is described in point 9. 
  I understand that I need to explicitly include the ID of the <code>&lt;h:form&gt;</code> in the include in the <code>&lt;f:ajax render&gt;</code> to solve it.</p>
  
  <pre><code>&lt;f:ajax render=":propertiesArea :propertiesArea:someFormId" /&gt;
  </code></pre>
  
  <p>In my case, however, the form ID is not known beforehand. Also this form will not be available in the context initally.</p>
  
  <p>Is there any solution to the above scenario?</p>