This example shows a simple master-detail table implemented using the r:dataTable and r:collapsibleSubTable components

New in RichFaces 4.x is the ability to collapse and expand sub-tables using the r:collapsibleSubTable and r:collapsibleSubTableToggler components.

You can customize expanding and collapsing sub-tables in several ways:

- Sub-tables can be collapsed and expanded in different modes. Use the r:collapsibleSubTable component's expandMode attribute to specify client, ajax or server mode.
- You can control the current state of sub-tables by using the expanded attribute.