Do the rich:subTable components have different numbers of columns? If so, then you probly need to make them sub-rich:dataTable components instead.
Thanks for the reply.
And, yes, my subtables have different number of columns. And the number of subtables as well as the number of columns of each subtable is only known at runtime.
I have already tried rich:subTable (see my code snippet 1) and also rich:dataTable (see my code snippet 2) nested inside another rich:dataTable. But it seems that rich:columns can't get the correct list of columns of subtables.
Anyone has been successful with this case?
Have you tried nesting them inside a tomahawk dataTable or an h:dataTable or nesting a t:dataTable inside it with a t:columns instead of rich:dataTable nested within rich:dataTable?
I have found the solution by using rich:columns in combination with c:forEach.
Have a look at
for more information.