Staff Appointments

This demo uses a CommandDiagram component with the toolkit's ResourceChart model. The diagram and the panel buttons use AJAX to update the panel fields and the diagram, respectively.

The diagram and data model are in Session scope, but would be in Application scope in a real application.

Source Files
edit.xhtml The page's Facelets source file.
EditRequest.java The page handler class.
EditDiagram.java The diagram handler class.
StaffData.java The demo's data model class.
Appointment.java The demo's data object class.
ApptElement.java The demo's display element class generates the properties required for the Resource Chart from the data object's values.
staffsched.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.