In the following code for a navigation menu, everything works except the action attribute of the tr:commandNavigationItem tag:
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:tr="http://myfaces.apache.org/trinidad"> <tr:form> <tr:navigationPane var="menuItem" value="#{menuModel.model}" hint="list" inlineStyle="margin-left:-20px;margin-top:-15px;"> <!-- For some reason text will not be displayed if there is not another element in the tr:navigationPane besides the nodeStamp facet--> <tr:group></tr:group> <f:facet name="nodeStamp"> <tr:commandNavigationItem action="#{menuItem.action}" disabled="#{menuItem.disabled}" text="#{menuItem.label}" destination="#{menuItem.destination}" rendered="#{menuItem.shown}" selected="#{menuItem.viewId == view.viewId}" immediate="true" /> </f:facet> </tr:navigationPane> </tr:form> </ui:composition> The getter for menuItem.action is never called, while all of the other getters are being called (menuItem.destination, menuItem.label, etc.). I tried removing the destination=... attribute with no success. What is the key to using an action on a commandNavigationItem, and what am I missing? Thanks. -- Chris Hansen Overstock.com Internal Applications 6350 South 3000 East Salt Lake City, Utah 84121 Toll Free: 800.The.Big.O (843-2446) www.overstock.com
