Datatable column rows

Hi,

In my application I need to display a list of images from a database table. Now if I do as:

<h:datatable value="#{myBean.x}" var="item">

<h:column>

<h:graphicimage url="{#item.pic}"/>

</h:column>

I end with a narrow one column table like.

x

x

x

x

x

while I want to get

x x x x

x x x x

x x x x

How can I achieve this?

thanks

[461 byte] By [kev9023a] at [2007-11-27 2:06:45]
# 1
Apply CSS to set the column width.
BalusCa at 2007-7-12 1:54:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

You can use myfaces implementation of dataList

<t:dataList var="imgList" value="#{list.imageList}" layout="simple" dir="ltr">

<h:graphicImage url="#{imgList.getImagePath}" />

</t:dataList>

dataList is similar to the dataTable only diffrence is you can render the table value in single row

Yashua at 2007-7-12 1:54:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...