title: The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>
body: <p>Here is my form:</p>
  
  <pre><code>&lt;form action="j_security_check"&gt;
      &lt;h:panelGrid columns="2" bgcolor="#eff5fa" cellspacing="5" frame="box" styleClass="center"&gt;
          &lt;h:outputLabel value="User ID:"/&gt;
          &lt;h:inputText id="j_username" tabindex="1" /&gt;
          &lt;h:outputLabel value="Password:"/&gt;
          &lt;h:inputSecret id="j_password"/&gt;
          &lt;h:outputLabel value=""/&gt;
          &lt;h:commandButton id="login" value="Login"/&gt;
      &lt;/h:panelGrid&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>It work fine with Glassfish 3.0.1, but since Glassfish 3.1 b2 it shows this warning as a <code>FacesMessage</code> in the JSF page:</p>
  
  <blockquote>
    <p>The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <code>&lt;h:form&gt;</code></p>
  </blockquote>
  
  <p>If I change the <code>&lt;form action="j_security_check"&gt;</code> to <code>&lt;h:form&gt;</code>, it does not fix it, I have to place the <code>&lt;h:form&gt;</code> inside the <code>&lt;h:panelGrid&gt;</code>.</p>