The first step to getting started with the Apache MyFaces Trinidad framework is to download and install the necessary JAR files. These files can be obtained from the Apache website (http://myfaces.apache.org/trinidad/index.html). The example application for this chapter included with this book contains a fully functional Java web application with the necessary JAR files and configuration changes in web.xml
for reference purposes. To highlight the key steps needed to use Trinidad, the following steps are needed:
1. Copy the Trinidad JAR files to the
WEB-INF/lib
directory.2. Add the following to
web.xml
. Notice that we are specifying that we are using Facelets by setting theorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER
parameter. We are also disabling view caching and enabling file modification checking for development purposes. We also specify the HTTP session for change persistence and we disable content compression to simplify debugging the Trinidad framework...