Hi there, maybe someone can give me a hand about this (I'm using RichFaces 3.2.1 GA):
I'm using a panelMenu in mode="server" to navigate between pages (that
works OK), when I select an Item from the panelMenu it navigate correctly
to the target page but it don't keep the opened menu path to the selected
Item (The panelMenu shows all the panelMenuGroups closed).
I tried saving the name property of the selected menuItem in a
backing bean, and restoring it to the selectedChild property of the
panelMenu, but it don't open the panelMenu path to the named
menuItem.
Any suggestion will be greatly appreciated :-)
Here is a simplified example of the issue, I harcoded the panelMenu's
selectedChild property to a name "testing", but when the page
loads it don't show the panelMenuGroup opened with the Item 1
selected.
<h:form> <rich:panelMenu mode="server" expandSingle="true" style="width:150px" iconExpandedGroup="disc" iconCollapsedGroup="disc" iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right" iconCollapsedTopGroup="chevronDown" iconCollapsedTopPosition="right" selectedChild="testing"> <rich:panelMenuGroup label="Group 1" iconCollapsed="triangle" iconExpanded="triangleDown"> <rich:panelMenuItem label="Item 1" action="#{panelMenu.updateCurrent}" name="testing" > <f:param name="current" value="Item1TargetPage" /> </rich:panelMenuItem> <rich:panelMenuItem label="Item 2" action="#{panelMenu.updateCurrent}"> <f:param name="current" value="Item2TargetPage" /> </rich:panelMenuItem> </rich:panelMenuGroup> </rich:panelMenuGroup>