Sunday Dec 14, 2008

How to Use MyFaces with GlassFish - an Update

Most migrations to GlassFish are straight-forward, a testimony to the value of the JavaEE specification (and to the extra care to the user in the GF community!). The only area that sometimes requires non-trivial changes are dependencies on implementation details in MyFaces.

The GlassFish JSF implementation (Mojarra) is Used in Many Containers and the new JSF 2.0 spec should improve portability but GF supports a useMyFaces Property for this use case. Arun just published a note showing how to use the property when Using Apache Tomahawk but I'm extracting here the configuration table for ease of reference:


• On GlassFish v2 - Set "useMyFaces" in "sun-web.xml"
• On GlassFish v3 Prelude - Not supported
• On GlassFish v3 Trunk - Set "useMyFaces" OR "useBundledJsf" in "sun-web.xml".

Note that you also need to disable Facelets 2.0 in "web.xml" if you have Facelets 1.1.x dependencies.

Sunday Oct 12, 2008

Using MyFaces with GlassFish


Switching from Tomcat to GlassFish is very easy, specially with recent additions like Valves Support; The only somewhat tricky area were dependencies on MyFaces APIs or behavior.

A simple solution to this problem is to use the UseMyFaces properly, as mentioned in this thread. This approach is directly applicable Alfresco; see Mandy's post.

PS, I'll clarify if UseMyFaces is officially supported or not.

Tuesday Feb 28, 2006

GlassFish and Java EE SDK run ADF Faces

MyFaces - Easter Faces

Ed reports one more installment on getting ADF Faces to run on GlassFish. Ed's blog provides detailed instructions. Early testers are encouraged to find any remaining issues, but I know there are some improvements on the way and I'll report as they show up.