File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 15299
    
    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: 15299
    
    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 agree. Here's the link: http://aspose.com/file-tools
 
subject: logic:iterate functionality with jsf