title: I am Getting warning message on Browser while using jsf primefaces
body: <p>I am Using primefaces and Jsf with glassfish when i try to execute this code </p>
  
  <pre><code> &lt;p:menubar autoSubmenuDisplay="true" effect="slide"&gt;
                      &lt;p:submenu label="File" icon="ui-icon ui-icon-gear"&gt;
                          &lt;p:menuitem value="Logout" url="#" /&gt;
                      &lt;/p:submenu&gt;
                      &lt;p:submenu label="Goto" icon="ui-icon ui-icon-gear"&gt;
                          &lt;p:menuitem value="Enhancement Catalog" action="#{adminControlBean.eAMChat}" id="submit1"  ajax="false" /&gt;
                          &lt;p:menuitem value="Proceed to Chat" action="#{adminControlBean.enhancementCatalog}" id="submit2" /&gt;
                          &lt;p:menuitem value="Customer Maintanence" action="#{adminControlBean.customerMaintanance}" id="submit3" /&gt;
                          &lt;p:menuitem value="Moderator Maintanence" action="#{adminControlBean.moderatorMaintanance}"  id="submit4" /&gt;
                          &lt;p:menuitem value="Chat Protocols" action="#{adminControlBean.chatProtocalMaintanance}" id="submit5" ajax="false" /&gt;
                      &lt;/p:submenu&gt;
                      &lt;p:submenu label="Edit" icon="ui-icon ui-icon-gear"&gt;
                          &lt;p:menuitem value="Change Password" action="#{password.submitAction}" id="submit"  /&gt;
                      &lt;/p:submenu&gt;
                  &lt;/p:menubar&gt;
  </code></pre>
  
  <p>I am getting warning message as </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>Please let me know where i made a mistake</p>