Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.0.10-core
-
None
-
None
-
Windows XP, JDK 5, Jboss 4.0.4, Facelets 1.1.14
Description
I am using the XMLMenu Model component with facelets and when the rendered property is added to the commandNavigationItem the entire menu fails to display. The problem only occurs when using the rendered property and works without Facelets using JSP. I receive the following log in the console:
13:42:33,819 ERROR [STDERR] Jun 5, 2009 1:42:33 PM org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter endElement
SEVERE: Element End name:nobr does not match start name:span
13:42:33,819 ERROR [STDERR] Jun 5, 2009 1:42:33 PM org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter endElement
SEVERE: Element End name:span does not match start name:td
13:42:33,819 ERROR [STDERR] Jun 5, 2009 1:42:33 PM org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter endElement
SEVERE: Element End name:td does not match start name:tr
13:42:33,835 ERROR [STDERR] Jun 5, 2009 1:42:33 PM org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter endElement
SEVERE: Element End name:tr does not match start name:table
13:42:33,835 ERROR [STDERR] Jun 5, 2009 1:42:33 PM org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter endElement
SEVERE: Element End name:span does not match start name:div
13:42:34,068 ERROR [STDERR] Jun 5, 2009 1:42:34 PM org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter endElement
SEVERE: Element End name:div does not match start name:span
13:42:34,068 ERROR [STDERR] Jun 5, 2009 1:42:34 PM org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter endElement
SEVERE: Element End name:span does not match start name:form
13:42:34,068 ERROR [STDERR] Jun 5, 2009 1:42:34 PM org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter endElement
SEVERE: Element End name:form does not match start name:body
13:42:34,068 ERROR [STDERR] Jun 5, 2009 1:42:34 PM org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter endElement
SEVERE: Element End name:body does not match start name:html
My facelet config in web.xml is as follows:
<context-param>
<param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
<context-param>
<param-name>facelets.VIEW_MAPPINGS</param-name>
<param-value>*.xhtml</param-value>
</context-param>
<!-- Special Debug Output for Development -->
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
Menu model xml is:
<itemNode id="menuTabs">
<itemNode id="search" label="Project Search" action="menu.menuprojectsearch" focusViewId="/pages/projectSearch.xhtml">
<itemNode id="results" label="Project Results" focusViewId="/pages/projectSearchResults.xhtml"/>
<itemNode id="edit" label="Project Edit" focusViewId="/pages/projectEdit.xhtml"/>
</itemNode>
<itemNode id="new" label="New Project" action="menu.menuprojectnew" focusViewId="/pages/newProject.xhtml" disabled="true"/>
<itemNode id="dashboard" label="Project Dashboard" action="menu.menuprojectdash" focusViewId="/pages/projectDash.xhtml"/>
<itemNode id="reports" label="Reports" action="menu.menureports" focusViewId="/pages/reports/reports.xhtml"/>
</itemNode>
<itemNode id="logout" label="Logout" action="logout" icon="/images/logout.gif"/>
<itemNode id="help" label="Help" icon="/images/globalhelp.gif" destination="#
"/>
And the page snippet that creates the menu:
<h:form id="form">
<tr:page id="page" var="node" value="#
">
<f:facet name="nodeStamp">
<tr:commandNavigationItem id="cmdNavItem" text="#
"
action="#
" icon="#
{node.icon}" immediate="true" rendered="#
{node.rendered}"
>
</tr:commandNavigationItem>
</f:facet>