title: malformedXML: During update: adminUsersForm not found
body: <p>I'm having some doubts about ajax on JSF.</p>
  
  <p>My xhtml looks like this:</p>
  
  <pre><code>&lt;h:body&gt;
  &lt;h:form id="menuForm"&gt;
      &lt;h:outputLabel for="menu"&gt;Available actions: &lt;/h:outputLabel&gt;
      &lt;h:selectOneMenu id="menu" value="#{menu.mainMenuItem}"&gt;
          &lt;f:selectItem itemLabel="Select an option..." itemValue="null" /&gt;
          &lt;f:selectItems value="#{menu.mainMenuItems}" /&gt;
          &lt;f:ajax render=":menuForm :adminUsersForm :loadInfoForm :viewFilesForm" /&gt;
          &lt;!-- &lt;f:ajax render="@all" /&gt; --&gt;
      &lt;/h:selectOneMenu&gt;
  &lt;/h:form&gt;
  
  &lt;h:form id="adminUsersForm"
      rendered="#{menu.mainMenuItem == 'Admin users.'}"&gt;
      &lt;h:commandButton value="Button 1" /&gt;
  &lt;/h:form&gt;
  
  &lt;h:form id="loadInfoForm"
      rendered="#{menu.mainMenuItem == 'Load info.'}"&gt;
      &lt;h:commandButton value="Button 2" /&gt;
  &lt;/h:form&gt;
  
  &lt;h:form id="viewFilesForm"
      rendered="#{menu.mainMenuItem == 'View files.'}"&gt;
      &lt;h:commandButton value="Button 3" /&gt;
  &lt;/h:form&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>When I use <code>&lt;f:ajax render=":menuForm :adminUsersForm :loadInfoForm :viewFilesForm" /&gt;</code> I get the malformedXML error, on the other hand when I use <code>&lt;f:ajax render="@all" /&gt;</code> the correct <code>&lt;h:form&gt;</code>is rendering.</p>
  
  <p>Whats happening in here? I read that using ajax we can render components <strong>just</strong> inside the same <strong>form</strong>, but if we use the <code>:componentID</code> it is possible to render -using ajax- components outside a form.</p>
  
  <p>Thanks in advance, and maybe it's a basic question but I'm very new to JSF and trying to learn.</p>