• 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

navigationMenuItem inside a dataList

 
Ranch Hand
Posts: 101
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi - My page has a dataList as given below

<t:dataList var="item" value="#{xmlModel.componentModel}" rowIndexVar="count">
<t:navigationMenuItem value="#{item}"></t:navigationMenuItem>
<t:outputText value=" » " escape="false" rendered="#{!((count + 1)==xmlModel.listSize)}"></t:outputText>
</t:dataList>
getComponentModel returns a list of NavigationMenuItems. So each item is nothing but a NavigationMenuItem. When the page is rendered, except the text in outputText nothing is rendered. I want to know how to get the navigationMenuItem displayed. I can see the dataList is iterating properly based on the size. Please help..
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either use t:navigationMenuItems instead of t:dataList, or access the NavigationMenuItem properties the usual javabean way. I.e. #{item.label} #{item.value} and so on (not sure if this approach works inside a t:dataList though, it's just pure theory, I have never used it).
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic