IT is Fun

November 29, 2007

t:dataTable and t:dataList

Filed under: JSF — themamakcorner @ 10:54 am

By using t:dataTable, one is able to list out based on columns.

<t:dataTable var=”itemInfo” value=”#{itemBean.itemList}” ….>
<h:column>

<h:outputText value=”#{artistCategoryInfo.name}” />
</t:dataTable>

It’ll be able to display items in this way:

A

B

C

D

To display in horizontal way, use t:dataList

<t:dataList var=”itemInfo” value=”#{itemBean.itemList}” layout=”simple”>

<h:outputText value=”#{artistCategoryInfo.name}” />

</t:dataList>

This way, it’ll display in

A B C D …

Blog at WordPress.com.