Note: This is a re-edit of the post Spring 3 and Tiles 2 Integration. It uses now the latest version of Apache Tiles (at the time of the writing 3.0.1) and presents how Apache Tiles is used on top of Spring/Spring MVC to construct the layout of the Podcastpedia.org website
1. Why Apache Tiles?
Well, because it
- is a free open-sourced templating framework for modern Java applications. Based upon the Composite pattern it is built to simplify the development of user interfaces.
- remains, for complex web sites, the easiest and most elegant way to work alongside any MVC technology.
Tiles allows authors to define page fragments which can be assembled into a complete pages at runtime. These fragments, or tiles, can be used as simple includes in order to reduce the duplication of common page elements or embedded within other tiles to develop a series of reusable templates. These templates streamline the development of a consistent look and feel across an entire application.
Source code for this post is available on Github - podcastpedia.org is an open source project.