myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsilverman <>
Subject Possible bug in XMLMenuModel more than one level deep?
Date Tue, 09 Sep 2008 18:01:23 GMT

I can't seem to get an XMLMenuModel to work with more than one level of menu
items. Navigation always returns to the first level of menu items after a
button click. I posted this problem earlier under a different subject
heading, but perhaps my example there was too complicated. 

IMO this is a major problem that prevents any real use of XMLMenuModel
navigation. Here's a simpler way to illustrate the problem:

Create an XMLMenuModel with at least level 0 and level 1 items. Then use it
on a panelPage with  navigation3 and navigation1 facets. Add a commandButton
to the content area of the panelPage and try navigation through the menus
after clicking the button. You can't do it. Navigation always returns to the
first level 0 menu item. The result is that any menu more than 1 level deep
is useless.

Your panelPage can be as simple as this:

						<f:facet name="navigation3">
				            <tr:navigationTree var="foo" value="#{root_menu}">
				              <f:facet name="nodeStamp">
			            <f:facet name="navigation1">
			              <tr:navigationPane id="np1" var="foo" value="#{root_menu}"
			                <f:facet name="nodeStamp">
                    <tr:commandButton id="cmd2" text="Enter" />

If anyone is using XMLMenuModels more than 1 level deep, please let me know
how you do it.
View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message