0 Replies Latest reply on Mar 25, 2008 1:02 AM by yacin

    I really need help with rich:panelMenuItem

    yacin

      I am using rich:panelMenu from Jboss RichFaces live demo. What I want to do is to include a xhtml page once a user click one of my menu. here is portion of what I want to do.

      <rich:panelMenuGroup label="Manage Agent">
       <rich:panelMenuItem label="Edit Agent"
       action="#{panelMenu.updateCurrent}">
       <f:param name="current" value="EditAgent"/>
       </rich:panelMenuItem>
       <rich:panelMenuItem label="Create Agent"
       action="true" reRender="createagentid">
       <f:param name="current" value="createAgent"/>
      
      
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
      and here is what I am using in order to include the xhtml page, after the user clicked the menu
      <ui:define name="content">
      
       <ui:fragment rendered="#{current == 'createAgent'}" id="createagentid">
       <ui:include src="/organization/createAgent.xhtml"/>
       </ui:fragment>
      
       </ui:define>
      Please help, I am struggling with this issue for couple days. Thanks in advance.

      Yacin