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}" var="url"> <rich:column> <h:outputLink id="txtDEObservationSequence" value="?sendTo=#{url.pageUrl}" > <h:outputText id="txtDEObservationCode" value="#{url.description}" /> </h:outputLink> </rich:column> </rich:dataTable> </rich:panelMenuItem> </rich:panelMenuGroup> </rich:panelMenu>