Bus Trip

This demo uses a SelectDiagram with a static map from MapQuest's online map service. The Set Trip Start and Set Trip End buttons update the diagram asynchronously using AJAX.

The diagram is in Application scope, shared by all clients and reconfigured for each request.

Source Files
bustrip.xhtml The page's Facelets source file.
BusRequest.java The page handler class.
BusDiagram.java The diagram handler class.
bustrip.elt The element file, constructed in the toolkit's design editor; specifies positions for the bus stops.
bustrip.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.