I'm attempting to use a RichFaces panelMenu as a navigation menu but have yet to figure out a way for it to maintain state between requests. Is there anyway to tell the panelMenu to render itself with certain groups expanded with开发者_运维百科out using ajax?
I've attempted setting the value on the panelMenu and using selectedChild, all to no avail.
The state of the expanded sections is controlled by the rich:panelMenuGroup
children, in particular their expanded
attributes; these can be bound to server-side objects. You need to ensure their server-side state is updated somehow, though, either through setting the rich:panelMenu
with the attribute expandMode="server"
(which will cause a server-side submit) or by making it a child of whatever form is being submitted.
精彩评论