This demo uses a read-only SelectDiagram component with the toolkit's TreeLayout package. The Update button uses AJAX to submit the parameter values and update the diagram.
The diagram is in Application scope, shared by all clients and reconfigured for each request.
| Source Files | |
|---|---|
| layout.xhtml | The page's Facelets source file. |
| LayoutRequest.java | The page handler class. |
| LayoutDiagram.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. |
| layout.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. |
