开发者

Maintaining RichFaces panelMenu state between requests

开发者 https://www.devze.com 2022-12-08 07:03 出处:网络
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 wit

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消