Tuesday Jan 08, 2013

It's time to revisit JSF 2.2

Java EE 7 is about to be launched, and along with it, JSF 2.2. There are so many cool new things coming up that everyone who's not using it yet on a web project, should revisit it. Read the blog post titled "Reasons to why I'm reconsidering JSF" to get a better understanding on why you could, or should, look again at Java Server Faces for your future projects.

There's also a great presentation Ed Burns showed in JavaOne 2012, "What’s New in JSF: A Complete Tour of JSF 2.2". This will certainly give you ideas, and show you how much JSF has evolved along with the Java EE platform.

Also, if you feel that JSF 2.2 is missing something for Java EE 7, don't hesitate to participate and adopt JSR 344 through our Adopt a JSR effort.

Happy web coding!

Wednesday Apr 04, 2012

JSF 2.2 Update from Ed Burns

In a recent interview the JavaServer Faces specification lead, Ed Burns, gave an update on JSF 2.2. This is a required component of the Java EE 7 platform.

The work is expected to wrap up by CY 2012 and the schedule is publicly available. The interview provide an update on how Tenant Scope from CDI and multi-templating will be included. It also provide details on which HTML 5 content categories will be addressed.

Ed Burns

The EG discussions are mirrored at jsr344-experts@javaserverfaces-spec-public. You can also participate in the discussion by posting a message to users@javaserverfaces-spec-public. All the mailing lists are open for subscription anyway and JIRA for spec provide more details about features targeted for the upcoming release.

A blog at J-Development provide complete details about the new features coming in this version. And an Early Draft of the specification is available for some time now.

Wednesday Jan 11, 2012

JSF and HTML 5 intersection - Server Sent Events

Note: if you're reading this using a feedreader, please make sure you've updated to the updated TheAquarium feed.

Roger Kitain from the GlassFish JSF team has made available a recent article he wrote for JAX's Java Tech Journal titled "JSF 2 and HTML 5 Server Sent Events".

The article explores how one of many many HTML5 technologies, Server Sent Events (SSE), can be incorporated in a JSF UI. It includes sample code for creating JSF composite components used for a stock quote application that features server-initiated page refreshes (using SSE).

ALT_DESCR

While not as powerful as the WebSocket protocol, HTML 5 Server Sent Events can used to provide partial page refresh without moving away from the HTTP protocol.

.

Monday Oct 19, 2009

Mojarra 2.0.0 is here! Start Using JSF 2.0 Now!

ALT DESCR

Mojarra 2.0, the production-quality, reference implementation for JSF 2.0 is out! Yet another step closer to v3 final. This will of course be part of GlassFish v3 later this year (with an integration planned as early as this week) but Maven and standalone are two other options to grab the bits.

In his blog, Ryan lists a set of very good resources (mainly blog posts) on JSF 2.0. Earlier this year, Ryan authored a series of blogposts which were also very detailed and informative. He covers tools support (yes, it's coming very soon as Cay discusses for NetBeans in his latest blog post) and recognizes the numerous contributors to this major release.

Note also that while JSF 2.0 is set to be part of Java EE 6, it does not require a servlet 3.0 container. In the case of GlassFish v3.0, web.xml is optional and there is no longer the need to declare the Faces servlet (see Cay's entry on that as well).

Mojarra as an implementation of JSF 2.0 is the first one out but it is also set to be part of a number of coopetitor's. Finally, now is probably a good time to skim throught The Aquarium posts tagged with the jsf2 and mojarra keywords.

Added The latest release is Mojarra 2.0.1, see Jim's post.

Sunday Sep 06, 2009

JSR 299 and 330 progress in latest GlassFish v3

Code snippet

As previously reported last month, JavaEE 6 will include JSR330 and JSR299. Roger Kitain already has a simple yet detailed blog entry on using JCDI (JSR 299, ex-WebBeans) in GlassFish. He walks through JSF 2.0 and JSR 299/JSR 330 code. You'll see there @Inject, @Qualifier, @SessionScoped, @ApplicationScoped, all in action.

If you're curious enough to test this sample, I would recommend using NetBeans 6.8 M1 - register a recent GlassFish v3 build (promoted build web 62 for instance), create a Web Application with Java EE 6 as the platform level and copy paste the various pieces. No further settings are required.

Overall, this shows progress since Cay's previous entry on the topic. Other posts on similar topics are marked with the "jsr299" and "jsr330" tags. Keep an eye on Roger's blog for more entries on this topic.

Wednesday Aug 12, 2009

More JSF 2.0 Examples - Pets and Calendars

ALT DESCR

More JSF 2.0 samples:

• Carol has converted the Pet Store to Use JSF 2.0, JavaEE6 and GFv3 preview,
• Jim shows how to take a YUI calendar widget and integrate it in a JSF 2.0 page,
• ... and then takes that widget and Moves it into a JSF Component.

Friday Jul 31, 2009

Two More (Very Good) JSF 2.0 Overviews

ALT DESCR

JSF 2.0 continues to show signs of good adoption in the enterprise world. From IBM's DeveloperWorks, David Geary has posted JSF 2 Fu, Part 3. And, from the other side, Andy Schwartz, Oracle's rep to JSR-314, has now published a very nice and complete What’s New in JSF 2?.

Other posts on this topic are tagged JSF2. An easy way to play with the technology is to download GlassFish v3 Preview and then Upgrade to the Latest Mojarra.

Sunday Jul 19, 2009

Mojarra 2.0 beta2 Implements PFD for JSF 2.0

ALT DESCR

There is a new beta for Mojarra 2.0, the RI of JSF 2.0 (relnotes, news, downloads).

Mojarra 2.0 is bundled in GlassFish v3 and the new release of Mojarra is included in recent Promoted Builds; an alternative is to use the Update Center and only update JSF.

The Update Crenter is accessed through an update tool; either the one bundled in the GlassFish console or the unbundled one. To do that, first ensure that you have http://pkg.glassfish.org/v3/dev as your preferred repository and then check on available updates. You will get a long list; you can then unselect all the components (using (Command-Modifier)-U on my mac) and then select JSF only. Then you just need to install the new packages.

Thanks to Jim for the tip. Ah!, also note that Mojarra can also be used in other containers; install and configure it manually.

Thursday Jul 09, 2009

Google AppEngine and NetBeans ... and Mojarra / JSF

ALT DESCR

There is a new project at Kenai: NBAppEngine. As the name suggests, this is intended to provide a NetBeans plugin for the Google AppEngine. Check the introductory writeups by Petr and Geertjan; check it out, and consider helping out.

On a related topic, I noticed that Mojarra 1.2.13 now has "support" for Google AppEngine; see ChangeLog.

Now, if we could only get them to Support JPA Properly...

Wednesday Jul 08, 2009

Cay on WebBeans and JSF, on GlassFish v3 Preview

ALT DESCR

Cay is updating his Core JSF book and is taking WebBeans (JSR299) for a spin. His most recent post writes covers Conversation scope and access to stateful session beans from JSF pages. Cay used GlassFish v3 Preview (after updating to the latest JSF components); except for one example where he had to use JBoss 5.1.0 GA because we have not yet implemented some pieces of WebBeans. (see his comment about startup times :-))

Check out Cay's Note and you may also want to check Pete Muir's Webinar with SlideCast from May 19th.

Friday Jun 19, 2009

Learning JSF 2.0 - New Links, RefCards, Samples, JSF Fu...

Now that JSF 2.0 is Final and is is easily accessible in GFv3 Preview, it is a good time to learn more about it, so here is a set of useful links:

ALT DESCR

• The JSR 314 site (EG) has a link to the spec, the votes, etc.
• The (production ready) RI is available at the Mojarra page, but a better way is to...
• Use GlassFish v3 Preview, which includes samples, documentation and the Update Tool.
• The Mojarra site also includes the JavaDocs and the JSF DataSheet.
• Sun's JSF Technology page has multiple links, including the JSF 2.0 tutorial.
• From Cay, check out his DZone RefCard.
• From David Geary see his JSF Fu articles: part 1 and part 2.
• From Jim see his series on JSF features, including his additional JSF resources.
• From Ryan, his detailed Series on New Spec Features.

Also, all related TA entries are tagged JSF... And, please send us feedback on the spec or the implementation to help us with the Fit and Finish.

Wednesday May 27, 2009

JCP News: JSF 2.0, JCP 2.7 and @Inject JSR

Three brief but important JCP news:

ALT DESCR

The first JavaEE 6 specification has been Approved by the EC. JSF 2.0 was approved by a vote of 12 YES, 0 NO, 0 Abstain... and 4 EC members not voting (if you are curious about these things, check out the EC Voting Records). Other JSRs should come along in the near future as we close on Java EE 6.

The JCP also approved additional transparency for JCP 2.7, which I believe is a very important part in running an Expert group for a number of reasons, including balancing the role of the EG lead.

The final news is the submission of JSR 330, Dependency Injection for Java. The relationship to JSR 299 is unclear to me at this point.

Monday May 25, 2009

IceFaces' Ajax with JSF 2.0 (Mojarra)

ALT DESCR

JSF 2.0 is arguably one of the most awaited update to the Java EE 6 specification. IceFaces, the well-known provider of Ajax-enabled JSF components, is now building its 2.0 version on top of the Ajax support now built into the JSF 2.0 specification. Co-specification lead Roger Kitain has a recent blog entry discussing how ICEFaces uses JSF 2.0 to send Ajax requests from the client and how it processes them on the server.

In other recent JSF news, Ryan Lubke discusses bookmark-ability in JSF 2.0 (with the reference Mojarra implementation). Previous entries regarding JSF 2.0 can be found using the jsf2 tag.

In a few days time you'll be able to use the Preview version of GlassFish v3 which supports JSF 2.0. The adventurous can grab a recent GlassFish v3 promoted build here.

Saturday May 16, 2009

More JSF 2.0, and Now in Final Vote

JSR 314, JSF 2.0, is Now in Final Vote. To celebrate that, here is a pass through JSF 2.0 news:

ALT DESCR

• From Ed, the Slides and Feedback on his recent Online Webinar
   (sorry, couldn't find the time to announce it).
• From Jim, Redirecting from an Ajax Request and Ajax Events and Errors
• From David Geary, Part I of an in-depth review of JSF 2.0.

Additional related entries are tagged JSF or JSF2.

Tuesday Apr 21, 2009

More in JSF 2.0 Preview Series - Custom Managed Bean Scopes

Ryan's latest installement in his JSF 2.0 Preview series shows how to implement Custom Managed Beans through the new custom scope view and the managed-bean-scope element in faces-config.xml or via the @CustomScoped annotation.

The full series is:

ALT DESCR

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
Part 6 - Implicit Navigation
Part 7 - Custom Managed Beans (latest addition)

PS. The picture is that of the Tuxtla Statuette, which is from the La Mojarra; used here as Mojarra is the project name of the GlassFish JSF implementation.