Room Schedule

This demo uses a CommandDiagram component with the toolkit's Weekly Schedule 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
schedule.xhtml The page's Facelets source file.
ScheduleRequest.java The page handler class.
ScheduleDiagram.java The diagram handler class.
ScheduleData.java The demo's data model class.
Booking.java The demo's data object class.
BookingElement.java The demo's display element class makes the data available to the model and calculates the arrows.
schedule.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.