Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

navigationMenuItem inside a dataList

 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • Mark post as helpful
  • send pies
  • 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>
<tutputText value=" » " escape="false" rendered="#{!((count + 1)==xmlModel.listSize)}"></tutputText>
</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..
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • 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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic