Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSF
Trinidad-XMLMenuModel sub-elements not rendered
Esteban Sanchez
Greenhorn
Posts: 4
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I'm trying to use
XMLMenuModel
in Apache Trinidad. I can't manage to have sub-elements displayed. It does show top level elements. I'll post the source.
In web.xml:
<managed-bean> <managed-bean-name>menu</managed-bean-name> <managed-bean-class> es.mi.encuestas.model.XMLMenuModel </managed-bean-class> <managed-bean-scope>request</managed-bean-scope> <managed-property> <property-name>source</property-name> <value>/WEB-INF/menu-metadata.xml</value> </managed-property> </managed-bean>
In menu-metadata.xml:
<?xml version="1.0" encoding="iso-8859-1"?> <menu xmlns="http://myfaces.apache.org/trinidad/menu" resourceBundle="es.mi.encuestas.i18n.etiquetas" var="textos"> <itemNode id="menuItemGestionUsuarios" label="#{textos['menu.gestionUsuarios']}" destination="GestionUsuariosPrincipal.jspx" focusViewId="/GestionUsuariosPrincipal.jspx"> <itemNode id="menuItemNuevoUsuario" label="#{textos['menu.nuevoUsuario']}" destination="NuevoUsuario.jspx" focusViewId="/NuevoUsuario.jspx"/> </itemNode> <itemNode id="menuItemPlantillas" label="#{textos['menu.plantillas']}" destination="PlantillasPrincipal.jspx" focusViewId="/PlantillasPrincipal.jspx"> </itemNode> <itemNode id="menuItemInformes" label="#{textos['menu.informes']}" destination="InformesPrincipal.jspx" focusViewId="/InformesPrincipal.jspx"> </itemNode> </menu>
In jspx page:
<trh:body> <tr:form> <tr:navigationPane id="navPanel" var="menu" value="#{menu}" hint="list" level="1"> <f:facet name="nodeStamp"> <tr:commandNavigationItem text="#{menu.label}" destination="#{menu.destination}" /> </f:facet> </tr:navigationPane> <tr:panelGroupLayout layout="vertical"> <tr:outputText value="aaaaaaa." /> </tr:panelGroupLayout> </tr:form> </trh:body>
Ben Souther
Sheriff
Posts: 13411
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
"Esteban S:",
Please check your
private messages
regarding an important administrative matter.
-Ben
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How can I set bean property in JSF page?!
"#{...} is not allowed in template text" error
Delete/edit a row in JSF
tr:commandButton actionListener not invoking managed bean method
Component ID .... has already been found in the view with t:dataScroller.
More...