Tapestry Examples

Tapestry's main distribution includes the Tapestry JAR files plus all source code for Tapestry, the Tapestry documentation, and Tapestry examples.


While the main source distribution does not require a 1.5 JDK, the examples do as they make use of features such as annotations.

Because of licensing concerns, JAR dependencies (such as Javassist) and example applications are not distributed with Tapestry itself. As an Apache Software Foundation project, the Tapestry distributions must be limited to just software directly provided by the ASF; nothing from outside the ASF is allowed.

If you like, you can easily (?) build Tapestry, including the examples, from source. The necessary dependencies are automatically downloaded by Ant build scripts, but it takes some elbow grease to set up. Details at the Wiki .

But wouldn't it be nice to just get the compiled examples, ready to take for a spin? We think so, so we now provide the examples, precompiled, packaged, and ready to go, as a seperate distribution, from a non-ASF server.

These examples are available at http://howardlewisship.com/downloads/quick-start/ as tapestry-examples- version .tar.gz .

The distribution is a snapshot of a JBoss 4.0.2 instance, with two Tapestry applications deployed into it.

To make use of it, unpack the distribution, which will create a jboss-tapestry-examples- version directory. Change to the bin sub-directory and execute the run.bat or run.sh startup script.

JBoss will start up and you'll be able to access the two demonstration applications.



Workbench Screenshot

The workbench is a testbed for many common Tapestry components. The tabs across the top demonstrate different Tapestry features and components, including localization, input validation, exception reporting, and the Palette and Table components.

Virtual Library


Virtual Library Screenshot

The Virtual Library is a small but complete J2EE application. It uses J2EE Entity beans with container managed persistence, and a stateless session facade, with Tapestry on the front end. The application is used to manage a shared pool of books, tracking who owns and who is currently borrowing each book.

Three users are built into the library. All three use the same password, "secret":

  • dilbert@bigco.com
  • squeue@bug.org
  • ringbearer@bagend.shire
The "ringbearer" user has administrative access. When logged in as ringbearer, you'll see additional menu options for managing users and publishers.