Camp Reservation

This demo uses a SelectDiagram component with one of two data models. The Date radio buttons and the Continue buttons use AJAX to update the diagram.

The diagram and data manager are in Session scope.

Source Files
reserve.xhtml The page's Facelets source file.
reserve.js The JavaScript file for the page.
ReserveRequest.java The page handler class.
ReserveDiagram.java The diagram handler class.
CampData.java A data manager class to hold the demos' data models, one per reservation date.
Site.java The demo's data object class.
CampElement.java The demo's display element class; maintains its reservation state property and its selectability depending on who has reserved the site.
camp.elt The element file, constructed in the toolkit's design editor; specifies positions for the campsites.
reserve.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.