Saturday Jan 10, 2009

Implementation for Latest JSF 2.0 - Now in the Update Center


The JSF 2.0 team last month released an implementation of the new JSF 2.0 PRD (see JCP vote) and an updated JSF 1.2.11.

The releases are available at the GFv3 Update Center (see, e.g., Mac) and can be installed using the stand-alone UpdateTool or the Admin Console. Let us know if you encounter any problems.

This implementation has all PRD features including the Declarative Events described by Jason, but the EG is still working on additional features like state management. A few others, like bookmarkable URLs, are still being discussed and may or not make it.

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.

Wednesday Nov 26, 2008

JSF 2.0 - Public Review Now Available


The Public Review draft of JSF 2.0 is available for download. Earlier Roberto reported on the plan for all the Java EE 6 specs to be in PR by mid-December; so far so good, but more to come.

Roberto is scheduled to present on Java EE 6 on Dec 18th (together with Rajiv on Servlet 3.0). Also see posts tagged JSF and JCP.

Added - Another Spec released in PRD that same day was the Java EE Connection Architecture 1.6.

Sunday Aug 17, 2008

Facelets, Facelets! In the JSF 2.0 Repository ... and NetBeans and Eclipse


Facelets are (almost) here! The Facelets View Definition Framework was designed to complement the JSF technology and will be added to the JSF 2.0 specification - the EDR (Expert Draft Release) actually has a placeholder for them in Chapter 10 (see JSR 314 EDR) and you can check out an earlier definition of Facelets here.

Ryan just pushed the facelets code into the Mojarra (the JSF RI, part of GlassFish) repository - see Commit message (MarkMail Archive, Java.Net Msg) - thanks to Ed for the tip - and we should hear more from that front soon.

Facelets are already supported in NetBeans (Intro to Facelets Tutorial) and hopefully also in Eclipse (in the meantime check out this Note). A couple of other useful pointers are Matthias posts and this DeveloperWorks Article. Also see entries tagged as JSF

Added - Ryan tells me that the plan is to incorporate ideas from both Facelets and JSF Templating into JSF 2.0. I'll highlight the details as they become public.

Friday Jul 25, 2008

JSF 2.0 Preview Series - View Scope, Component Object, FacesContext Attributes Map


One more note from Ryan on his JSF 2.0 Preview series. This one covers View Scope, Component Implicit EL Object and FacesContext Attributes Map. Collecting them all chronologically for ease of references:

Part 1 - Packaging / Project Staging
Part 2.1 - Resources
Part 2.2 - Resource APIs
Part 2.3 - Resources and EL
Part 3 - Publish/Subscribe Event System
Part 4 - Resource Re-location
Part 5 - EDR1 Potpourri (just added)

Ryan's note completes the new features in EDR1. To install it you can follow the instructions in the Release Notes.

The image shown with this entry is a drawing of La Mojarra Stela 1 from research lead by Terrence Kaufman - see the Larger Image.

Saturday Jun 28, 2008

JSF 2.0 Preview Series - Publish/Subscribe Events and Resource Relocation


Ryan has written two more notes on his JSF 2.0 Preview series. Collecting them all chronologically for ease of references:

Part 1 - Packaging / Project Staging
Part 2.1 - Resources
Part 2.2 - Resource APIs
Part 2.3 - Resources and EL
Part 3 - Publish/Subscribe Event System (just added)
Part 4 - Resource Re-location (just added)

Ryan is also leading the Mojarra Implementation, the production-ready, Reference Implementation that will be used in GlassFish v3, and he also just announced the Early Access Implementation.

JSF's adoption seems to continue to be strong and to grow. I am beginning to think the adoption is bimodal, it depends very much on what market/geography one considers. For example, see Kito's JSF Jobs writeup.

Note: also see reviews/summaries of Ryan's posts by Ed and in earlier TA's spotlights: here and here.

JSF 2.0 EDR implementation available from Mojarra

JSF 2.0 image

JSF 2.0 is one of the key Java EE 6 components. As an API, JSF 2.0 (aka JSR 314) is in the Early Access Draft (EDR) phase. Jim Driscoll announces the availability of Mojarra EDR 1 which is the Mojarra (a GlassFish sub-project) implementation of that specification. This EDR release should soon be available on the GlassFish v2 update center and later on on the GlassFish v3 update center.

As a reminder, JSF 2.0 has the following objectives: make writing JSF components easier, integrated support for Ajax, reduced configuration, portlet 2.0 alignment, integration of facelets, support for Rest principles, and more. Ed has a nice summary of yet more features. As an implementation, Mojarra also has a number of interesting features beyond what the specification requires such as Groovy integration for a save/reload development paradigm.

Java EE 6 is scheduled for the first half of 2009. The final version of GlassFish v3 will implement Java EE 6.
More on this news at TSS.

Monday Jun 02, 2008

JSF 2.0 Early Access Review Available


The JSF 2.0 Expert Group is soliciting feedback on their Early Access Draft. The review started on June 2nd (yesterday) and will run until July 2nd. Draft specification is available ; additional details at the JSR 314 JCP Page.

Ryan and the team are working on an EA of the implementation for people to try out. I believe we will try to make it available at both the UC 1 and the UC 2 repositories.

Friday Apr 18, 2008

Groovy for fast JSF development in GlassFish

Happy Developer

JSF can now enjoy the save+reload paradigm (no redeployment) when using Mojarra and Groovy. You may remember Mojarra as the new name for the JSF (reference) implementation integrated into GlassFish. Groovy on the other side probably doesn't need that much introduction.

In a recent blog, Ryan Lubke explains how a recent version of Mojarra can be configured to let you write pretty much any JSF artifact in groovy and thus benefit fully from dynamic reloading. If you add Facelets and NetBeans to the mix, the developer experience becomes very seamless. Ryan's instructions cover the use of the recently-released Groovy 1.5.5 version.

Read also Jason's blog on that topic.

Friday Apr 04, 2008

Apache Trinidad JSF Component Library on GlassFish

Apache MyFaces Logo

The Apache MyFaces project has a number of subprojects. One of them is the MyFaces Implementation, an alternative to the GlassFish JSF RI (aka Mojarra). Buy MyFaces also has several component libraries and their Compatibility Matrix indicates that the latest versions of Trinidad and Tomahawk run with Mojarra.

Ryan just validated this for the latest Trinidad. Check Ryan's Note and the Live Demos.

Friday Feb 08, 2008

Be Productive - JSF Component Libraries for GlassFish

Poster for The Matrix Reloaded

The JSF Matrix keeps a table of JSF component libraries (although the comments suggest it needs updating) and Ryan just published a short note pointing to it. Pretty much all the component libraries work with GlassFish (we cheat a bit, most of the AppServers are using Mojarra, our JSF implementation).

Libraries explicitly mentioned by Ryan from those in the JSF Matrix include our own Woodstock, ICEfaces, Apache Trinidad, Apache Tomahawk, JBoss RichFaces and Blueprints. He also lists Mojarra Scales and Mannor'n Rock.

We would like to make it easier for you to run any of these libraries in your GlassFish application; let us know if you discover problems and we will collaborate with the library owners to fix them.

Wednesday Dec 05, 2007

Mojarra - New Name, Same Good Quality for the JSF Implementation from GlassFish

GlassFIsh Mascot

The JSF team at GlassFish has announced a new name for the project: Mojarra (as in the fish - although La Mojarra is also an interesting linkage).

Ryan and Jason provide details on the why, but in a nutshell: "Mojarra" is is much shorter than "the JSF Production-Quality Reference Implementation from GlassFish".