This content has been marked as final.
Show 2 replies
-
1. Re: Breaking columns in RichFaces' dataTable with colspan an
sergeysmirnov Jul 17, 2007 5:17 PM (in response to tonylmai)Hmm. Why you just did not repeat exactly what you have in the original html mockup. As I see, you have only two rows, so you have to have only one breakBefore to make a replica.
Column A
Column B
Grouping A
Grouping B
Column I
Column C
Column D
Column E
Column F
Column G
Column H<thead> <tr> <th rowspan="2">Column A</th> <th rowspan="2">Column B</th> <th colspan="3">Grouping A</th> <th colspan="3">Grouping B</th> <th rowspan="2">Column I</th> </tr> <tr> <th>Column C</th> <th>Column D</th> <th>Column E</th> <th>Column F</th> <th>Column G</th> <th>Column H</th> </tr> </thead>
reproduces with:<f:facet name="header"> <rich:columnGroup> <rich:column rowspan="2">Column A</rich:column> <rich:column rowspan="2">Column B</rich:column> <rich:column colspan="3">Grouping A</rich:column> <rich:column colspan="3">Grouping B</rich:column> <rich:column rowspan="2">Column I</rich:column> <rich:column breakBefore="true">Column C</rich:column> <rich:column>Column D</rich:column> <rich:column>Column E</rich:column> <rich:column>Column F</rich:column> <rich:column>Column G</rich:column> <rich:column>Column H</rich:column> </rich:columnGroup> </f:facet>
As you see, breakBefore replaces "< /tr >< tr >" and that is it. -
2. Re: Breaking columns in RichFaces' dataTable with colspan an
tonylmai Jul 17, 2007 5:42 PM (in response to tonylmai)I see. That worked well.
Thanks again SS.