• Post Reply Bookmark Topic Watch Topic
  • New Topic

Iterating in jsf  RSS feed

 
Efrat Bar-Nahum
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to iterate over a vector in a managed bean.
When I use a <h:dataTable> I get a list of items in a column:
item1
item2
item3

But I want to get them in a row:
item1 item2 items

How can I do it in jsf??

Thanks a lot,
 
Tim Holloway
Bartender
Posts: 18716
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF is really intended to operate at a higher level, so you aren't really expected to code logic constructs such as iteration in JSF. Instead you need a renderer that delivers the data in the format you want.

As a comparatively young product, sometimes that means you may have to design your own custom renderer though, since the off-the-shelf selection is still a bit thin.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!