Table of Contents
Spring Web Flow provides a JSF integration that simplifies using JSF with Spring. It lets you use the JSF UI Component Model with Spring MVC and Spring Web Flow controllers. Along with the JSF integration Spring Web Flow provides a small Facelets component library (called Spring Faces) for use in JSF 1.2 environments and a Spring Security tag library for use in both JSF 1.2 and JSF 2.0 environments (see the section called “Using the Spring Security Facelets Tag Library” for more details).
Starting with version 2.2 the JSF integration in Web Flow supports
JSF 2.0 including Sun Mojarra and Apache MyFaces runtime environments.
Please, note however that JSF 2 partial state saving is not yet supported
with Apache MyFaces and needs to be disabled with the
javax.faces.PARTIAL_STATE_SAVING context parameter in
Also note that the Spring Faces component library, which provides
Ajax and client-side validation capabilities is for JSF 1.2 environments
only and will not be upgraded to JSF 2.0. Applications are encouraged to
use 3rd party JSF 2 component libraries such as PrimeFaces and RichFaces.
swf-booking-faces sample in the Spring Web Flow
distribution for example is built with JSF 2 and PrimeFaces
Spring Web Flow also supports using JSF in a portlet environment. Spring Web Flow's portlet integration supports Portlets API 2.0 and JSF 1.2 only. Currently JSF 2 is not supported in combination with portlets. See Chapter 14, Portlet Integration for more on Spring Web Flow's portlet integration.