Over a million developers have joined DZone.

RichFaces 3.3.3 Begins Support for JSF 2.0

DZone's Guide to

RichFaces 3.3.3 Begins Support for JSF 2.0

· Java Zone ·
Free Resource

Delivering modern software? Atomist automates your software delivery experience.

The JBoss component library for Java Server Faces, RichFaces, is swiftly approaching a final release for version 3.3.3 with the availability of CR1.  The primary new feature of this release is the beginning of support for the JSF 2.0 spec, which is part of the Java EE 6 web tier.  The focus of this release is to allow developers a chance to try using JSF 2.0 while still maintaining the innovative support for JSF 1.2.  Full support for JSF 2.0 will arrive in RichFaces 4.0, which is currently in alpha.

Facelets is the new official view technology for JSF 2.0, eliminating the need for workarounds for well-known life-cycle conflicts with Java Server Pages.  Component and tag creation with Facelets will also make life easier for developers by using XML markup instead of Java code.  Page transitions in JSF 2.0 are invoked by passing the name of the desired View/Facelet.  RichFaces 3.3.3 does not support built-in Facelets (VDL), but Facelets can be used.  Facelets 1.1.15 should still be used because of RichFaces' dependencies from the Tag Handlers classes.  JSF 2.0 will also give RichFaces users access to Java 5 annotations such as @ManagedBean and @ManagedProperty, which removes the need for faces-config.xml in all cases except for framework extension.  

Partial State Saving and DOM updates are part of the built-in Ajax support for JSF 2.0.  There is also built-in support for handling resources such as images, CSS, and Javascript.  Artifacts can be included with component libraries, separated into JAR files, or co-located into a consistent place within the web-application.  JSF 2.0 also includes logical naming and versioning of resources, support for events, RAILS_ENV-style development stages, and an expanded standard set of components.

RichFaces 3.3.3 will let you run your applications with JSF 2.0 and start preparing them for the eventual full switch to the new spec.  RichFaces 4.0 will feature complete JSF 2.0 integration, development, and extensions.  It will include Ajax framework improvements that extend the JSF 2 spec and a simplified development kit with annotations, advanced templates, faces-config extensions, and more.  Along with server and client-side performance enhancements, RichFaces 4.0 will also feature a redesigned modular repository and build system.

Start automating your delivery right there on your own laptop, today! Get the open source Atomist Software Delivery Machine.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}