If you are beginner in the field of JSF framework then really its necessary to follow the examples provided by any source. Here apache itself has provided examples in a zipped format. These examples are good implementation of Tomahawk components. Tomahawk examples can be downloaded from http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk-examples-1.1.6-bin.zip or http://myfaces.apache.org/download.html. The downloaded file will be a zip file named tomahawk-examples-1.1.6-bin.zip. Extract the zip file and you will get 4 war files.
Here we will be using myfaces-example-simple-1.1.6.war
to understand features of MyFaces JSF implementation and developing JSF
application using MyFaces Tomahawk components.
For this just place myfaces-example-simple-1.1.6.war file to web-apps directory of your Tomcat 6.0 server. Restarting server will automatically extracts this war file to the directory of same name as war file. In this tutorial we have changed the name of myfaces-example-simple-1.1.6.war file to myfaces.war so when server restarts there will be a directory of name myfaces.
Place http://localhost:8080/myfaces URL to the address bar of your browser and hit enter key. You will get a list of examples like :
Just click on any link in the list and see the functionalities provided by the examples. In this tutorial some examples are shown below :
You had a glance to the examples developed using MyFaces with Tomahawk. You can go through the code and learn developing JSF application. You can see code for these examples in web-apps\myfaces directory of Tomcat server. In these examples, tomahawk tag library has been used to create many components with added functionality. You can create better UI using these components in your application.
Liked it! Share this Tutorial