Bug 743560

Summary: Spring Web Flow 2.3.0 does not work with JSF 2.1
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Oliver Kišš <okiss>
Component: doc-Release-Notes, SpringAssignee: Isaac Rooskov <irooskov>
Status: CLOSED CURRENTRELEASE QA Contact: Karel Piwko <kpiwko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.0.ER1CC: kpiwko, mariusb, mnovotny, oskutka, yshao
Target Milestone: ---   
Target Release: 2.0.0.GA   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In JBoss Web Framework Kit 2-Beta, some elements of Spring WebFlow and the JSF 2 API were incompatible. In one instance, a NullPointerException was thrown when a JSF 2 page was accessed outside of a Spring Web Flow flow; in a second instance, Spring Web Flow and JSF 2.1 could not be used together because it resulted in a java.lang.UnsupportedOperationException error. Spring WebFlow 2.3.1 is certified with JBoss Web Framework Kit 2 and does not have this issue, so it is fixed with this release.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-24 14:39:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
FlowFacesContext.java
none
FlowViewStateManager.java none

Description Oliver Kišš 2011-10-05 11:30:54 UTC
Description of problem:
Spring Web Flow 2.3.0 does not work with JSF 2.1

bug in Springsource JIRA:
UnsupportedOperationException for isReleased on FacesContext when using JSF 2.1
https://jira.springsource.org/browse/SWF-1467

Comment 4 Marius Bogoevici 2012-02-24 17:04:22 UTC
Created attachment 565641 [details]
FlowFacesContext.java

Comment 5 Marius Bogoevici 2012-02-24 17:05:12 UTC
Created attachment 565642 [details]
FlowViewStateManager.java

Comment 6 Marius Bogoevici 2012-02-24 17:07:17 UTC
Solution: Include listed classes in any Spring Webflow 2.3 application that uses JSF 2 running on JBoss AS7.

Also fixes https://jira.springsource.org/browse/SWF-1461

Add to Release Notes

Comment 7 Rebecca Newton 2012-02-28 06:28:11 UTC
Can I have a bit more info on this bug, please? In what way does Spring Web Flow 2.3.0 not work with JSF 2.1? What behaviour presents?

Comment 8 Marius Bogoevici 2012-02-29 05:54:17 UTC
This is actually referring to a couple if Spring WebFlow known issues

https://jira.springsource.org/browse/SWF-1461
https://jira.springsource.org/browse/SWF-1467

Both of them are essentially incompatibilities between Spring WebFlow and the JSF API.

The former causes a NPE (shown in the JIRA item) to be thrown when a JSF 2 page is accessed outside a Spring Web Flow flow.

The second is caused by an incompatibility between Spring Web Flow and the JSF 2.1. Simply put, the two cannot be used together because this will always result in the java.lang.UnsupportedOperationException shown in the JIRA item.

Comment 9 Rebecca Newton 2012-03-08 00:32:51 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Some elements of Spring WebFlow and the JSF 2 API are incompatible. In one instance, a NullPointerException is thrown when a JSF 2 page is accessed outside of a Spring Web Flow flow; in a second instance, Spring Web Flow and JSF 2.1 cannot be used to together because it results in a java.lang.UnsupportedOperationException error. These issues can be worked around by including listed classes in any Spring WebFlow 2.3 application that uses JSF 2 and it is running of JBoss Enterprise APplication Platform 6.

Comment 10 Karel Piwko 2012-03-08 13:05:03 UTC
Verified usage of attached classes and release notes in ER2.

Comment 11 Marius Bogoevici 2012-04-23 15:25:16 UTC
* BOM upgraded to reference Spring Webflow 2.3.1
* Workaround classes deleted in commit 46c97e0bd3f86e8fd525432596d3c7f4ae87aa88
* Technical notes need to be removed

Added Marek for productization work

Comment 12 Marius Bogoevici 2012-04-23 15:25:17 UTC
Deleted Technical Notes Contents.

Old Contents:
Some elements of Spring WebFlow and the JSF 2 API are incompatible. In one instance, a NullPointerException is thrown when a JSF 2 page is accessed outside of a Spring Web Flow flow; in a second instance, Spring Web Flow and JSF 2.1 cannot be used to together because it results in a java.lang.UnsupportedOperationException error. These issues can be worked around by including listed classes in any Spring WebFlow 2.3 application that uses JSF 2 and it is running of JBoss Enterprise APplication Platform 6.

Comment 14 Karel Piwko 2012-06-18 08:13:05 UTC
Verified in WFK 2.0.0.ER8

Comment 16 Rebecca Newton 2012-06-19 05:26:15 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
In JBoss Web Framework Kit 2-Beta, some elements of Spring WebFlow and the JSF 2 API were incompatible. In one instance, a NullPointerException was thrown when a JSF 2 page was accessed outside of a Spring Web Flow flow; in a second instance, Spring Web Flow and JSF 2.1 could not be used together because it resulted in a java.lang.UnsupportedOperationException error. 

Spring WebFlow 2.3.1 is certified with JBoss Web Framework Kit 2 and does not have this issue, so it is fixed with this release.

Comment 17 Karel Piwko 2012-09-24 14:39:08 UTC
Fixed in WFK 2.0.0.GA.