Hi,
I have some proble with <rich:panelMenu> component. When I click on menu item element all menu collapses. I don't know why because I use a session scope bean, and also itemMode attribute is set to 'ajax' value.
I work with Richface 3.3.3 and Seam 2.2.0.
Page xhtml code:
<rich:panelMenu
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:rich="http://richfaces.org/rich"
mode="ajax" itemMode="ajax"
groupMode="ajax" groupExpandedLeftIcon="triangleUp"
groupCollapsedLeftIcon="triangleDown"
topGroupExpandedRightIcon="chevron"
topGroupCollapsedRightIcon="chevronDown" itemLeftIcon="disc">
<rich:panelMenuGroup label="Menu" styleClass="panelMenuGroup">
<rich:panelMenuItem label="Login" name="Login" styleClass="panelMenuItem"
action="#{leftMenuBean.menuItemAction('/login.xhtml')}" />
<rich:panelMenuItem label="Register" name="Register" styleClass="panelMenuItem"
action="#{leftMenuBean.menuItemAction('/pages/register.xhtml')}" />
</rich:panelMenuGroup>
</rich:panelMenu>
And my bean code:
@Name("leftMenuBean")
@AutoCreate
@Scope(ScopeType.SESSION)
public class LeftMenuBean {
public LeftMenuBean() {
}
public String menuItemAction(String itemValue) {
System.out.println("LeftMenuBean.menuItemAction(): "+itemValue);
return itemValue;
}
}
Please help me!
Thanks in advance.