A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
iterating a list to display data in a single row
Joined: Sep 23, 2007
Dec 04, 2008 04:53:00
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,
Joined: Jun 11, 2002
Dec 08, 2008 00:47:00
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.
I agree. Here's the link:
- 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
array of objects confusion
Using EL to loop through a List and display all its properties
struts2: pass static collection parameter
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013