Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to display records side by side in a dataTable

843842Mar 5 2006 — edited Mar 6 2006
Hello,

I am trying to find a way to display records from a dataTable side by side
instead of one record per row (line). Following is a section of my datatable:
<h:dataTable id="items" value="#{itemController.items}" var="item"
rowClasses="oddRow, evenRow" 	headerClass="tableHeader">
		
<!--  Item ID -->
<h:column>
 <f:facet name="header">
 <h:panelGroup>
  <h:outputText value="Item ID"/>
 </h:panelGroup>  
 </f:facet>

 <h:commandLink action="#{itemController.subItemsDirector}">
  <h:outputText value="#{item.itemId}"/>
 </h:commandLink>
</h:column>
						
Basically, what I am looking to do is to display three records in a row as in the following:

A B C
D E F
........
X Y Z

I would appreciate if someone could point me towards the solution.

I know that the above might be possible to achieve in the JSF 1.2, by using c:forEach tag, however, I am trying to stick with the JSF 1.1 for now.

Thank you for your time,

Rauf
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2006
Added on Mar 5 2006
2 comments
78 views