This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes logic:iterate functionality with jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "logic:iterate functionality with jsf" Watch "logic:iterate functionality with jsf" New topic
Author

logic:iterate functionality with jsf

Megan Troy
Greenhorn

Joined: Jul 27, 2005
Posts: 10
Hi,

It is possible to use logic:iterate tag from Struts in JSF?

Thanks,
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302
    
    6

Originally posted by Megan Troy:
Hi,

It is possible to use logic:iterate tag from Struts in JSF?

Thanks,


No. Tell me what you are trying to do, and I will tell you the JSF way to do it.


GenRocket - Experts at Building Test Data
Megan Troy
Greenhorn

Joined: Jul 27, 2005
Posts: 10
Hi,

What I want to do is iterate over a list of menu items and display them.
For e.g., something like:

<logic:iterate id="menuItem" name="#{customer.menu}"> <h:commandLink styleClass="commandLink" id="menuLink"> <h utputText id="menuLinkText" value="#{menuItem}">
</h utputText>
</h:commandLink> <BR> </logic:iterate>

Thanks,
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302
    
    6

Which implementation of JSF are you using? MyFaces has a component that will do what you want. In fact, most 3rd party implementations do.
Wim Drapier
Greenhorn

Joined: Jul 20, 2005
Posts: 11
I trying to do the same here, by using a commandNavigation component of the MyFaces implementation but I'm not sure what is the best way to iterate and add child Navigation items.

For now I'm using a dataList to do the iterate, but I don't think this is correct.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: logic:iterate functionality with jsf
 
It's not a secret anymore!