This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Iterating over Arraylist in jsf application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Iterating over Arraylist in jsf application" Watch "Iterating over Arraylist in jsf application" New topic
Author

Iterating over Arraylist in jsf application

Ramkumar Subburaj
Ranch Hand

Joined: Sep 07, 2007
Posts: 83
Hello,

I wanted to display a list of products in a JSF enabled JSP page. When the user clicks the link to reach the page, the request goes to a managed bean where i'm getting the data from the database and storing it in an array list.

Now how to display these values in the JSP page (how to iterate over the array list).


SCJP 1.5, SCWCD 1.4.
Hanging between Web Services and EJB
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

Use <h:datatable>


My Blog SCJP 5 SCWCD 5
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Iterating over Arraylist in jsf application
 
Similar Threads
How to control the Iterator count
Help in table conversion from HTML to JSF
Export to Excel
How to display records in Grid view format in Jsp
create multiple checkboxes with Data base values in jsf page