Free tutorials for Java, Eclipse and Web programming



Apache Myfaces Trinidad with Eclipse - Tutorial

Lars Vogel

Version 0.2

22.11.2008

Revision History
Revision 0.112.11.2008Lars Vogel
First DRAFT
Revision 0.222.11.2008Lars Vogel
First working version

Apache MyFaces Trinidad

This article describes how to use setup Apache MyFaces Trinidad and how to use some of the additional components (compared with the JSF standard>.


Table of Contents

1. Apache MyFaces Trinidad - Overview
2. Example JSF application with Apache MyFaces Trinidad
2.1. Installation
2.2. Create Project
2.3. Configuration
2.4. Domain Model
2.5. Managed Beans
2.6. Create TestJsp
2.7. Run your application
3. Using the graphs from Trinidad
3.1. Domain Model
3.2. Managed Beans
3.3. Create JSP
3.4. Run your application
4. Thank you
5. Questions and Discussion
6. Links and Literature
6.1. Tutorials and Websites
6.2. JSF component libraries

1. Apache MyFaces Trinidad - Overview

The JSF standard implementations (Mojarra or Apache MyFaces) provide a set of components. Apache MyFaces Trinidad provides extended components via the MyFaces project.

To use Apache MyFaces Trinidad you need:

  • The standard JSF libraries

  • Apache MyFaces Trinidad libraries

  • The right settings in web.xml, faces-config.xml

  • An additional file "trinidad-config.xml" which contains some Trinidad specific settings.

Tip

You find nice examples in the Trindad example war files which can be downloaded from http://myfaces.apache.org/trinidad/download.html. You can also use these examples to check the necessary settings in web.xml, faces-config.xml and trinidad-config.xml