Nested tables

Id Status Comments Related address
64750 EIRMOD aliquyam sed...
Name Email
sed Stet@aliquyam.com
eirmod Stet@Stet.com
clita invidunt@At.com
86355 SED sea aliquyam...
Name Email
sed et@dolore.com
tempor sadipscing@et.com
labore ea@dolor.com
72665 ET nonumy no...
Name Email
accusam dolores@elitr.com
sit ipsum@ut.com
sed sit@justo.com
84176 SADIPSCING kasd labore...
Name Email
sed sadipscing@sea.com
erat consetetur@accusam.com
duo labore@est.com

In this sample you can see two nested <display:table>. Table tags can be nested to create sublist, but you need to consider some limitations:

  • You can't use page attributes created by the parent table for iteration in the nested table (for example if you have a parent table with id="parent" you can't use name="pageScope.parent" as source for the nested table). The expression is not evaluated during iteration, but only at the end of the whole table (to avoid useless work when you only need to display a part of the list), so you will get "nothing found to display" as a result, since the object created during page iteration is removed before the display. However, you can use objects created by the parent table do compose an expression like in the current sample.
  • You can use the row index to get the object to display from the parent table list like in the current sample only if you are not using sorting at the same time. If you use sorting the result will be wrong, since the original list is not affected by sorting.
  • Nested tables are not exported (how could you describe nested tables in csv or excel?).