dataTable single row coloumn display as two rows..
I need to display dataTable single Row columns in 2 rows.
For Eg :
dataTable each rows has 4 columns...
by defalut it displays col1 Col2 Col3 Col4.
But i need to displays
row1 :Col1Col2
Col3Col4
row2 :Col1Col2
Col3 Col4
I tried with inner and outer table combination but still having problems.
Does anyone has any code or sample code for this..
Thanks in Advance.
[437 byte] By [
mraja] at [2007-11-27 8:16:50]

# 1
It is hard to follow what you are asking. Do you mean that you want col3 and col4 to show up below col1 and col2 (new row?).
I am going to assume that you want to "split" or "wrap" your columns. To do this you need to provide the dataTable the proper datamodel.
<h:dataTable var="foo" model="bar">
<h:column>
<h:panelGrid columns="1">
<h:outputText value="col1">
<h:outputText value="col3"
></h:panelGrid>
</h:column>
<h:column>
<h:panelGrid columns="1">
<h:outputText value="col2">
<h:outputText value="col4"
></h:panelGrid>
</h:column>
<h:dataTable>