Hi,
I am using the XMLMenuModel to define my menu hierarchy. In my table
metadata xml file, I have the following entries:

  <itemNode  id="tab1" label="Tab 1" action="tab1Action"
    focusViewId="/app/tab1.jspx">
    <itemNode id="tab1_1" label="Tab 1, Menu 1" action="menu1Action"
      disabled="#{menuBacking.menu1Disabled}"
focusViewId="/app/menu1.jspx"/>
    <itemNode id="tab1_2" label="tab1, Menu 2" action="menu2Action"
       disabled="#{menuBacking.menu2Disabled}"
focusViewId="/app/menu2.jspx"/>
  </itemNode>

On my jspx pages, I have something like this in a tr:panelPageHeader tag

            <f:facet name="navigation2">
              <tr:navigationPane hint="bar" var="buttonItem"
value="#{tabMenu}"
                          level="1" inlineStyle="text-align: left;">
                <f:facet name="nodeStamp">
                  <tr:commandNavigationItem text="#{buttonItem.label}"
                                      accessKey="#{buttonItem.accessKey}"
                                      action="#{buttonItem.doAction}"
                                      disabled="#{buttonItem.disabled}"/>
                </f:facet>
              </tr:navigationPane>

The problem is that when the page is displayed, I get the following 500
Server Error:
javax.faces.FacesException: Cannot get value for expression '#{
buttonItem.disabled}'

My question is can the menus in a navigation facet that are stamped be set
to be enabled/disabled dynamically? If so, how?  Is the disabled property of
the items in the MenuModel different than 'disabled' (like action ->
doAction)?

Any help with this problem is greatly appreciated in advance.

_Richard

Reply via email to