Hi,
Couple of things come to mind:

a) ItemNode with id 'main2' does not have 'action' attribute,I think
clicking on main2 will not cause any navigation,very similar to the
symptom you are describing

b) The text of the commandNavigationItem is bound to #{menu.action},I
don't think that is what you want? Though I dont think that will cause
the problem you describe.

Thanks,
Abhi

On Tue, Sep 22, 2009 at 6:56 PM, jid1 <ideligian...@velti.com> wrote:
>
> Hi,
>
> I have the following code:
> --in the faces JSFX---
> <tr:navigationPane var="menu" value="#{root_menu}" level="0" hint="list">
>     <f:facet name="nodeStamp">
>         <tr:commandNavigationItem text="#{menu.action} 
> action="#{menu.doAction}"
> />
>     </f:facet>
> </tr:navigationPane>
>
> --#{root_menu} is defined as
> <bean id="root_menu" class="org.apache.myfaces.trinidad.model.XMLMenuModel"
> scope="request">
>     <beans:property name="source" value="/WEB-INF/xmlMenuModel.xml" />
> </bean>
>
> --/WEB-INF/xmlMenuModel.xml is defined
> <itemNode id="main1" label="#{msg.MHome}" action="main"
> focusViewId="/jsf/start.jspx" />
> <itemNode id="main2" label="#{msg.MSearch}" focusViewId="/jsf/main.jspx" />
>
> Everything is working (i.e. focusViewId, rendering, message, etc...), but
> when I click list item nothing happens. Not even an error. I tried setting
> the action manually but again no luck. When I set the 'destination'
> attribute is seems to work fine.
> Any idea of why this is happening?
>
> Thanks,
>
>
> --
> View this message in context: 
> http://www.nabble.com/--TRINIDAD---XMLMenuModel---Action-not-working-with-XMLMenuModel-and-commandNavigationItem-tp25530723p25530723.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to