Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the skeleton project, most of the HTML is not found on the pages themselves but in a Layout component which acts as a global template for the whole site. Java classes for components live in src/main/java/com/example/newapp/components and component templates go in src/main/resources/com/example/newapp/components.

The archetype includes a few optional extras:

  • The bundled version of the Bootstrap CSS library has a per-project override. You can see the files in src/webapp/context/mybootstrap, and the overrides to enable that in AppModule.java.
  • By default, Tapestry users Prototype as its client-side library, the archetype overrides this to jQuery, which is preferred for new projects.
  • The archetype adds a simple filter that shows the timing of each request.
  • The archetype sets up not just for builds with Maven, but also via Gradle.

What's next?

To deepen your understanding, step through the Tapestry Tutorial, which goes into much more detail about setting up your project as well as loading it into Eclipse... then continues on to teach you more about Tapestry.

...