This demo uses a CommandDiagram component with the toolkit's TreeLayout package. AJAX is used to update the diagram when subtrees are opened and closed.
The diagram is in Session scope because it maintains state information for each user.
| Source Files | |
|---|---|
| detail.xhtml | The page's Facelets source file. |
| DetailDiagram.java | The diagram handler class. |
| OrgchartData.java | The data model class reads the data from an XML file. |
| org.data | The XML file describing node information and hierarchical relationships. |
| detail.rdr | The renderer file describes how to render each object in the diagram based on its data values. |
| apprisant.properties | A toolkit configuration file used by all demos; specifies rendering hints and logging properties. |
| faces-config.xml | A JSF configuration file shared by all demos. |
| web.xml | A server configuration file shared by all demos. |