-
1. Re: dataTable possible: combine some members in a row?
nbelaevski Mar 1, 2010 8:14 PM (in response to javatwo)Hi Dave,
Yes, this is possible. Please take a look at livedemo example.
-
2. Re: dataTable possible: combine some members in a row?
javatwo Mar 2, 2010 8:15 PM (in response to nbelaevski)Hi Nick,
Thanks for reply. I looked at the live demo. I did not see the example of showing data (rows) in one row as the layout above.
data list = { A, B, C}.
layout:
----------
A
-----------
B | C
-----------
Thanks for help.
Dave
-
3. Re: dataTable possible: combine some members in a row?
ilya_shaikovsky Mar 3, 2010 3:37 AM (in response to javatwo)check colspan, rowspan and breakBefore usage. -
4. Re: dataTable possible: combine some members in a row?
javatwo Mar 4, 2010 1:43 AM (in response to ilya_shaikovsky)To my knowledge, colspan, rowspan and breakBefore are for columns of one row, and they can not be used across data list. If you could show me how to use it, it would be great help.
Thanks,
Dave
-
5. Re: dataTable possible: combine some members in a row?
ilya_shaikovsky Mar 4, 2010 2:20 AM (in response to javatwo)Got it.. and seems you're right.
So the first to try is to wrap for example this objects as properties of some parent single object and create list of the wrapper objects and use:
<dataTable value="#{list}" var="var"> <column colspan="2"> <outputText value="#{var.propertyA}"> </column> <column breakBefore="true"> <outputText value="#{var.propertyB}"> </column> <column> <outputText value="#{var.propertyC}"> </column> <dataTable>
And the other way is to define B and C as some child sublist of A and the use subtable for them. So A will be master table row and B and C in details table.
-
6. Re: dataTable possible: combine some members in a row?
javatwo Mar 6, 2010 2:53 AM (in response to ilya_shaikovsky)Thanks for your ideas. They will work, I believe. There might be an issue for ajax.
For example, ajax reRender an Component(id="Foo") in C.
Normally I can use ajaxKeys={2}.
For method 1, ajaxKeys={0}, all the Foo(s) in A, B and C have to be reRendered.
For method 2 (with subTable), how to use ajaxKeys to render Foo in C?
Thanks,
Dave
-
7. Re: dataTable possible: combine some members in a row?
nbelaevski Mar 6, 2010 1:45 PM (in response to javatwo)Hi Dave,
You can set "ajaxKeys" for subtable.