-
1. Re: Richfaces maintaining state between page refreshes (panelmenu)
bleathem Jul 9, 2013 5:05 PM (in response to divyapbend)Bind a backing bean property to the expanded attribute of the rich:panelMenuGroup
http://docs.jboss.org/richfaces/latest_4_X/vdldoc/rich/panelMenuGroup.html
-
2. Re: Richfaces maintaining state between page refreshes (panelmenu)
divyapbend Jul 11, 2013 2:52 PM (in response to bleathem)Thanks.
It would be great if can provide any code samples.
Also, another question. In the panelGroup, I need the first one to be just a plain link (e.g. Home) which does not have any panelMenuItem beneath it. It should directlty load an xhtml page instead of expanging.I tried to do something like
<rich:panelMenuGroup label="Home" action = "hompage.xhtml"> </rich:panelMenuGroup> <rich:panelMenuGroup label="Test1" > <rich:panelMenuItem label="Test1.1" action="test1.1.xhtml"> </rich:panelMenuItem> <rich:panelMenuItem label="Test1.2" action="test1.2.xhtml"> </rich:panelMenuItem> </rich:panelMenuGroup>
But it didnt work. I want Home to be a part of the <panelMenu> as the first link, without any submenus. I tired to use accordianlink but the Home link alone stands out from the rest of the panelMenuGroups which I do not want.
Thanks for the help !
-
3. Re: Richfaces maintaining state between page refreshes (panelmenu)
bleathem Jul 11, 2013 2:54 PM (in response to divyapbend)Trey setting the onclck listener, as in:
onclick="location.href='myPage.htm'"