Saturday, April 23, 2005

JavaServer Faces is easier than you think

Im trying to understand JSF, and picked up on this introductory artical by Rick hightower. And it actually worked!

  1. Create a web project, and add the relevant jars to WEB-INF/lib. (I use eclipse, tomcat and the sysdeo tomcat plugin as my development environment).
  2. Declare the faces servlet and mapping in web.xml
  3. Declare beans and navigation rules in faces.config.xml
  4. Create a model object
  5. Create a controller
  6. Create your jsps

this article covered the basics, but I think is a good starting point, as there s very little fluff in there. and the example works!

No comments:

Post a Comment