Issue Details (XML | Word | Printable)

Key: SPR-5585
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Juergen Hoeller
Reporter: Juergen Hoeller
Votes: 1
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
Spring Framework

Full support for JSF 2.0

Created: 20/Mar/09 06:28 AM   Updated: 07/Oct/09 02:01 PM   Resolved: 08/Sep/09 04:02 PM
Component/s: SpringWEB
Affects Version/s: None
Fix Version/s: 3.0 RC1

Time Tracking:
Not Specified


 Description  « Hide

We will be providing compatibility with Mojarra 2.0 beta releases - and hence the JSF 2.0 public review API there - in Spring 3.0 RC1 already.

However, full support for JSF 2.0 will have to wait for the JSR-314 spec going final, which is currently scheduled for September. Spring 3.1 will be catching up with it.



Ward Maenhout added a comment - 08/Sep/09 04:35 AM

JSR-314 went final on 01 Jul, 2009.
Is it possible that full support for JSF 2.0 comes in the final spring 3.0.0 release?


Juergen Hoeller added a comment - 08/Sep/09 04:02 PM

Yes, this has even been done for Spring 3.0 already. Marking this as fixed in 3.0 then.

Juergen


Ward Maenhout added a comment - 05/Oct/09 01:16 PM

Are you sure this is done?
I tried using the DelegatingVariableResolver to resolve my managedproperties, but it does not work.
Also the source code still states JSF 1.2 and nothing on 2.0

tested with the 3.0.0.RC1


Juergen Hoeller added a comment - 05/Oct/09 01:21 PM

Note that DelegatingVariableResolver is only really meant for use with JSF 1.1.

As of Spring 2.5, SpringBeanFacesELResolver is available for use with JSF 1.2 or higher: This should work fine with JSF 2.0 as well as far as we tested.

Let me know if you encounter further problems with JSF 2.0. We can still revise our JSF support for 3.0 RC2/GA where necessary.

Juergen


Ward Maenhout added a comment - 06/Oct/09 11:43 AM

Ok, seems I was reading the wrong documentation.
I tried it now with The SpringBeanFacesElResolver, added spring-web and spring-beans to my pom.xml and added the needed stuff in the facesconfig.
Note that this is the only thing I have in the facesconfig as I use the annotations.
I had a jsf 2.0 application working with 1 bean, and now I try to add inject an other bean into this one using spring.

The application runs, but in my page my original bean is not resolved. Is see my #{} showing up in my page.

I would like to get this working as a plan to write a tutorial afterwards and even extend it to build a JSF 2.0/SPRING 3.0 portlet later.


Ward Maenhout added a comment - 06/Oct/09 11:45 AM

Extra, nothing that is jsf 2.0 related is renderen in my page. (h:commandbutton is not renderend, but also not shown in the jsp or source of the page that is rendered)


Ward Maenhout added a comment - 07/Oct/09 02:01 PM

I succesfully integrated spring 3.0.0.RC1 with JSF 2.0.
Toke me some thing to figure out that I still need the context listener in my web.xml

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>