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

New in RichFaces 4.x is the ability to collapse and expand sub-tables using the rich:collapsibleSubTable and rich: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 rich: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.