Friday, June 15, 2007

JavaServer Faces!

I have been interested in an open source platform to launch a web site. I had heard the about jsf as a J2EE framework.

One is the lifecycle model better designed to protect the "model" of the MVC architecture.

The current available version is 1.2 which is available from Sun's Glassfish project. I was hoping the the Apache myfaces project would have a version 1.2 out but it seems they are still testing it.

Sun's version does not run on Tomcat, so I hope the MyFaces team can get 1.2 out soon. I have seen some indications that this can be checked out from cvs but not currently available as a release product.

My current set up is Tomcat,Eclipse,MyFaces,MySql along with the Sysdeo debugger.
Security for the app is set up using a Filter.
Basic templating done via Tiles.

I have some basic functionality up and running but I wanted to learn more about the JSF details before so I got a copy of "Core JavaServer Faces" by Geary,Horstmann. It was very good at filling in some gaps and revealing some other ideas I would like to incorporate in my J2EE apps.

It was good in describing the validation process, the JSF lifecycle(as diagrammed above), event handling, some of the Ajax code(Ajax4jsf).

When I get some more time I will revisit my application and incorporate some of this.

JSF is pretty neat!

Some good links:

No comments: