RF 3.2.0.GA panelMenu - binding
moldovan Apr 1, 2008 5:10 AMI'm currently testing the new RF 3.2.0.GA - Release with my webapp, and i noticed, that my panelMenu is not displayed anymore!
I'm creating my menu in a bean and bind it via the binding-attribute to the <rich:panelMenu>-Tag.
Here is piece of code of the bean:
public class NavigationMenu { GuiUtil myGuiUtil = null; HtmlPanelMenu panelMenu = null; public NavigationMenu() { // very important // with the GuiUtil-Object you get the messages in the national language myGuiUtil = new GuiUtil(FacesContext.getCurrentInstance().getViewRoot().getLocale()); } public HtmlPanelMenu getPanelMenu() { if(panelMenu == null) { panelMenu = new HtmlPanelMenu(); FacesContext facesContext = FacesContext.getCurrentInstance(); Application appl = facesContext.getApplication(); ELContext elContext = facesContext.getELContext(); ExpressionFactory exprFactory = appl.getExpressionFactory(); HtmlPanelMenuGroup menuGroup_AccountInfo = new HtmlPanelMenuGroup(); menuGroup_AccountInfo.setLabel(myGuiUtil.getMessageResource("menugroup_account")); menuGroup_AccountInfo.setName(myGuiUtil.getMessageResource("menugroup_account")); menuGroup_AccountInfo.setIconCollapsed("triangle"); menuGroup_AccountInfo.setIconExpanded("triangleDown"); HtmlPanelMenuItem menuItem_AccountInfo = new HtmlPanelMenuItem(); menuItem_AccountInfo.setLabel(myGuiUtil.getMessageResource("menugroup_account_products")); menuItem_AccountInfo.setName(myGuiUtil.getMessageResource("menugroup_account_products")); menuItem_AccountInfo.setActionExpression(exprFactory.createMethodExpression(elContext, "navigate_accountinfo", null, new Class[0])); menuGroup_AccountInfo.getChildren().add(menuItem_AccountInfo); panelMenu.getChildren().add(menuGroup_AccountInfo); .............. } return panelMenu; } public void setPanelMenu(HtmlPanelMenu panelMenu) { this.panelMenu = panelMenu; } }
and panelMenu-Tag:
<rich:panelMenu binding="#{navigationMenu.panelMenu}" width="220" />
I've looked into the documentation concerning changes for the new 3.2.0.GA Release, but I found nothing.
So I'm asking: Where is my panelMenu?