Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-9925

Panel menu: The form component needs to have a UIForm in its ancestry

    Details

      Description

      A page with rich:panelMenu shows the following message:

      • The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>

      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich" >
      <h:head/>

      <h:body>
      <h:form id="form">

      <rich:panelMenu id="panelMenu" activeItem="#

      {richPanelMenuBean.attributes['activeItem'].value}

      " >

      <rich:panelMenuGroup id="group1" label="Group 1">
      <rich:panelMenuItem id="item11" label="Item 1.1">
      <f:param name="current" value="Item 1.1" />
      </rich:panelMenuItem>
      <rich:panelMenuItem id="item12" label="Item 1.2">
      <f:param name="current" value="Item 1.2" />
      </rich:panelMenuItem>
      </rich:panelMenuGroup>

      <rich:panelMenuGroup id="group2" label="Group 2">
      <rich:panelMenuItem id="item21" label="Item 2.1">
      <f:param name="current" value="Item 2.1" />
      </rich:panelMenuItem>
      <rich:panelMenuItem id="item22" label="Item 2.2">
      <f:param name="current" value="Item 2.2" />
      </rich:panelMenuItem>
      </rich:panelMenuGroup>

      </rich:panelMenu>

      </h:form>
      </h:body>
      </html>

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  nbelaevski Nick Belaevski
                  Reporter:
                  ppitonak Pavol Pitoňák
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: