-
1. Re: problem with columnClasses
hrbaer Jul 6, 2009 4:50 AM (in response to hrbaer)Sorry, this is the right format:
"hrbaer" wrote:
Thats what I'm thinking of:
(Table 1)
|Column1|Column2|Column3|Column4|Column5|Column6|
|Column1|Column2|Column3|Column4|Column5|Column6|
|Column1|Column2|Column3|Column4|Column5|Column6|
(Table 2)
|Column1|Column2........................................................| -
2. Re: problem with columnClasses
user1234 Jul 6, 2009 5:44 AM (in response to hrbaer)For each column you can use width property with datamodel binding..
<rich:dataTable var="DATA_ROW"....>
<rich:column ...width="#{DATA_ROW.colwidth}">
colwidth is a field of your data model, and there you can set a width so that width will be set at runtime dynamically -
3. Re: problem with columnClasses
hrbaer Jul 6, 2009 7:42 AM (in response to hrbaer)"user1234" wrote:
For each column you can use width property with datamodel binding..
<rich:dataTable var="DATA_ROW"....>
<rich:column ...width="#{DATA_ROW.colwidth}">
colwidth is a field of your data model, and there you can set a width so that width will be set at runtime dynamically
Great! Thank you very much!
And just another question to my example:
First table: 6 columns
Second table 2 columns
If I want to combine those 2 tables is there a possibility to put something like colspan to my second table?
I just know how to put more cells into on with the panelGroup-attribute, but what I need is the other way around... any solution for this problem? -
4. Re: problem with columnClasses
user1234 Jul 6, 2009 9:58 AM (in response to hrbaer)" to combine those 2 tables" means??
your stucture is ..
Thats what I'm thinking of:
(Table 1)
|Column1|Column2|Column3|Column4|Column5|Column6|
|Column1|Column2|Column3|Column4|Column5|Column6|
|Column1|Column2|Column3|Column4|Column5|Column6|
(Table 2)
|Column1|Column2........................................................|
for second table, in Column2 you want to put all the cell like of table 1 "Column2|Column3|Column4|Column5|Column6" with in a single colum header??
for table 2 if its a single cell then give the width like
table 2 -Column2 = width of table 1 Column2+Column3+Column4+Column5+Column6
if you want multi cell in a single column,
use panel group and put <h:outputText > with the required data binding
you can use colspan if you need it for design.. see the demo link
http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf
it might help you -
5. Re: problem with columnClasses
hrbaer Jul 6, 2009 10:08 AM (in response to hrbaer)"user1234" wrote:
you can use colspan if you need it for design.. see the demo link
http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf
it might help you
It does - thank you once again!