0 Replies Latest reply on Jul 11, 2008 3:43 AM by chamika deshan

    rich:panelMenu are there any var attribute

    chamika deshan Newbie

      Hi all

      I need to generate rich:panelMenuItems dynamically according to a list in a session bean. Unfortunately I can't t
      do that because there is no "var" attribute in rich:panelMenu or rich:panelMenu.

      Therefore I'm using rich:dataTable because it has var attributes. This is not nice because instead of generating menuitems I generate columns.

      This is my code.

      <rich:panelMenu style="width:300px" mode="ajax" groupStyle="z-index:3000;"
       iconExpandedGroup="disc" iconCollapsedGroup="disc"
       iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
       iconCollapsedTopGroup="chevronDown" >
       <rich:panelMenuGroup label="User Roles">
       <rich:panelMenuItem >
       <rich:dataTable border="0" cellpadding="0" cellspacing="0"
       id="dtblObservationFromDataEntry" value="#{SessionDetails.user.roles}"
       <h:outputLink id="txtDEObservationSequence" value="?sendTo=#{url.pageUrl}" >
       <h:outputText id="txtDEObservationCode" value="#{url.description}" />

      Could U Please tell me how to use this var attribute in rich:panelMenu or rich:panelMenu.
      Thhanks in advance!