|author||Thiago H. de Paula Figueiredo <email@example.com>||Sat Sep 05 11:54:42 2020 -0300|
|committer||Thiago H. de Paula Figueiredo <firstname.lastname@example.org>||Sat Sep 05 11:55:56 2020 -0300|
Replacing code which used commons-lang
Tapestry is a component-oriented Java web app framework focusing on performance and developer productivity.
A component is just a reusable part of a page. It's trivially easy to create your own components, and Tapestry comes with a large number of components you can use (Form, Loop, Select, Checkbox, Grid, BeanEditor, etc.).
In Tapestry, each page and component is a simple Java POJO with a corresponding HTML template. The HTML template and corresponding Java class have the same name (e.g. “Breadcrumbs.html” and “Breadcrumbs.java”), so you don‘t have to tell Tapestry which template uses which Java class. It’s automatic.
Tapestry features live class reloading: change your Java code, refresh the browser and see the changes instantly.
Main article: Getting Started
You can let Apache Maven create your initial project for you:
mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org
Maven will prompt you for the archetype to create (“Tapestry 5 Quickstart Project”) and the exact version number (e.g., “5.4.3”). It also asks you for a group id, an artifact id, and a version number. Once Maven dowloads everything, then you can start the app:
$ cd newapp $ mvn jetty:run
Then just send your browser to http://localhost:8080/newapp
See https://tapestry.apache.org/documentation.html for the details on every Tapestry topic.