my dog learned polymorphism
The moose likes JSF and the fly likes iterating a list to display data in a single row Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "iterating a list to display data in a single row" Watch "iterating a list to display data in a single row" New topic
Author

iterating a list to display data in a single row

Rishidharan Somu
Greenhorn

Joined: Sep 23, 2007
Posts: 8

I have a list of 10 objects. These objects have an attribute name.

Now my requirement is to display the name in each object adjacent to each other with an image in front of each name (Something like how attachments are displayed in emails).

I tried using <h ataTable>, however the names are displayed one below the other.

Is there a way to display them adjacent to each other?

Thanks in advance,
Rishi.
Darryl Nortje
Ranch Hand

Joined: Jun 11, 2002
Posts: 140
Howzit Rishi,

You can use tomahawk dataList component and set the attribute layout="simple".

It works exactly the same as h:dataTable, just the it can render the list accross the page, instead of top down.

I used it very effectively to develop a breadCrumb trail for my web app.

Cheers
Darryl
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: iterating a list to display data in a single row
 
Similar Threads
array of objects confusion
Rectange Problem
Using logic:iterate
Using EL to loop through a List and display all its properties
struts2: pass static collection parameter