This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF random iteration on List. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF random iteration on List." Watch "JSF random iteration on List." New topic

JSF random iteration on List.

Saurabh Pol

Joined: Dec 05, 2012
Posts: 12
I have a dynaic list say for person detail

the first element into List will be the name of the person and remaining will be their respective details like

Name Saurabh Pol
Age 21
height 155
weight 53
........ ...
........ .....

I have to show the name in separate <div></div> tag and other information in separate <div></div> tag. like bellow.

<div class="Header">
<span>Saurabh Pol</span>

<span class="ListItems">Remaining attributes</span>

please help me to solve this in JSF.

Thanks and Regards,
Saurabh Pol

Kemal Sokolovic

Joined: Jun 19, 2010
Posts: 825

Let's move this to the correct forum, I'm sure you'll have more chances of getting the right answer.

The quieter you are, the more you are able to hear.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16390

Welcome to the JavaRanch, Saurabh!

JSF has a media-independent View Definition Language. So using raw HTML in a JSF View Template is not something I recommend.

I definitely don't recommend coding logic constructs such as loops on a View definition. For tabular displays, JSF has special tags that treat collections of objects as the 2-dimensional objects that they really are, not as programming constructs.

You need to sit down with a good introductory JSF book.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: JSF random iteration on List.