Hi,
I have a dropdownmenu with diffrent items, clicking one of them directs the users to a diffrent page. But I wanted to have a similar behaviour when people clik on the top level itself.
In the example I need the users to view the home page when cliking home
<rich:toolBar>
<rich:dropDownMenu value="#{msg.menu_common}" >
<rich:menuItem submitMode="none"
onclick="#{path.dynamicUrl}somelink">
<h:outputLink value="#{path.dynamicUrl}somelink">
<h:outputText value="#{msg.menu_common_item1}"></h:outputText >
</h:outputLink>
</rich:menuItem>
...
I tried adding an outputlink
<rich:dropDownMenu value="#{msg.menu_common}" >
<h:outputLink value="#{path.dynamicUrl}home">
<h:outputText value="Home"></h:outputText >
</h:outputLink>
But this does not get rendered.
I know dropDownMenu doenst have a onclick event. But is there a work around / solution to my problem?
Roel