• Post Reply Bookmark Topic Watch Topic
  • New Topic

iterating a list to display data in a single row

 
Rishidharan Somu
Greenhorn
Posts: 8
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!