Hi,

i'm unable to use the launchListener attribute in the XmlMenuModel
because i don't know how i could define it in my page.

I've got the following xml menu declaration:
<menu xmlns="http://myfaces.apache.org/trinidad/menu";
    resourceBundle="MyMessages" var="msgBundle">    
    <itemNode id="userProfile" label="#{msgBundle['userProfile']}"
        action="dialog:userProfile"
        useWindow="true" windowWidth="780" windowHeight="400"
        launchListener="#{portalHeader.launchUserProfileDialog}"/>
    </itemNode>
</menu>

And here is my code snippet that should use the xml menu:
<tr:navigationPane hint="bar" id="mainNavBar"
    value="#{xmlMenuModel}" var="menuItem">
    <f:facet name="nodeStamp">
        <tr:commandNavigationItem text="#{menuItem.label}"
            action="#{menuItem.doAction}"
            rendered="#{menuItem.rendered}"
            disabled="#{menuItem.disabled}"
            useWindow="#{menuItem.useWindow}" 
            windowWidth="#{menuItem.windowWidth}" 
            windowHeight="#{menuItem.windowHeight}"
            launchListener="#{menuItem.launchListener}"
            partialSubmit="true">
        </tr:commandNavigationItem>
    </f:facet>
</tr:navigationPane>

When i click on my navigation item i get the error:
myPage.jpx @29,54 launchListener="#{menuItem.launchListener}": Method
not found:
[EMAIL PROTECTED](
org.apache.myfaces.trinidad.event.LaunchEvent)

What's going on here? Could somebody give me any clues how i have to
write the nodeStamp facet? I'm filled with despair...

Regards,

Sven

Reply via email to