Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0
-
Fix Version/s: 2.0.1
-
Component/s: Framework
-
Labels:None
-
Environment:Icefaces 2.x, Spring 3.x, Spring Security 3.x, Spring Webflow 2.2.1
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
Description
I have a complete working demo of spring webflow checked in under my username in the ICEsoft SVN repository. The working demo requires the following update to the class SeamUtilities found in the icefaces-compat/src/main/java/com/icesoft/util/SeamUtilities
The code below should handle the conditional case where (2 == springLoaded) (Line 537):
try {
String flowExecutionKeyFinderClassName = "com.icesoft.spring.webflow.FlowExecutionKeyFinder";
log.fine("Creating instance of: " + flowExecutionKeyFinderClassName);
Class flowExecutionKeyFinderClass = Class.forName("com.icesoft.spring.webflow.FlowExecutionKeyFinder");
Object flowExecutionKeyFinderInstance = flowExecutionKeyFinderClass.newInstance();
//see
if(null != flowExecutionKeyFinderInstance) {
value = flowExecutionKeyFinderInstance.toString();
}
if (null != value) {
//Spring Web Flow 2.x confirmed
flowIdParameterName = "org.springframework.webflow.FlowExecutionKey";
}
} catch (Exception e) {
log.log(Level.WARNING,"Unable to load spring flow execution key finder");
}
An integration class should be defined by application integrators as follows (will describe this in the Wiki/Tutorial):
package com.icesoft.spring.webflow;
import org.springframework.webflow.execution.RequestContextHolder;
import java.util.logging.Logger;
/**
* @author ICEsoft Technologies, Inc.
*
* Purpose of this class is to provide access to the Spring Webflow RequestContextHolder
* while not introducing Spring Webflow as a build or runtime dependency unless its actually being
* used.
*
*/
public class FlowExecutionKeyFinder {
private static Logger log = Logger.getLogger("com.icesoft.spring.webflow");
public FlowExecutionKeyFinder() {
log.fine("Constructed FlowExecutionKeyFinder - must be a Spring Webflow 2+ environment.");
}
public String toString() {
String key = RequestContextHolder.getRequestContext().getFlowExecutionContext().getKey().toString();
log.fine("Returning webflow key: "+ key);
return key;
}
}
The code below should handle the conditional case where (2 == springLoaded) (Line 537):
try {
String flowExecutionKeyFinderClassName = "com.icesoft.spring.webflow.FlowExecutionKeyFinder";
log.fine("Creating instance of: " + flowExecutionKeyFinderClassName);
Class flowExecutionKeyFinderClass = Class.forName("com.icesoft.spring.webflow.FlowExecutionKeyFinder");
Object flowExecutionKeyFinderInstance = flowExecutionKeyFinderClass.newInstance();
//see
if(null != flowExecutionKeyFinderInstance) {
value = flowExecutionKeyFinderInstance.toString();
}
if (null != value) {
//Spring Web Flow 2.x confirmed
flowIdParameterName = "org.springframework.webflow.FlowExecutionKey";
}
} catch (Exception e) {
log.log(Level.WARNING,"Unable to load spring flow execution key finder");
}
An integration class should be defined by application integrators as follows (will describe this in the Wiki/Tutorial):
package com.icesoft.spring.webflow;
import org.springframework.webflow.execution.RequestContextHolder;
import java.util.logging.Logger;
/**
* @author ICEsoft Technologies, Inc.
*
* Purpose of this class is to provide access to the Spring Webflow RequestContextHolder
* while not introducing Spring Webflow as a build or runtime dependency unless its actually being
* used.
*
*/
public class FlowExecutionKeyFinder {
private static Logger log = Logger.getLogger("com.icesoft.spring.webflow");
public FlowExecutionKeyFinder() {
log.fine("Constructed FlowExecutionKeyFinder - must be a Spring Webflow 2+ environment.");
}
public String toString() {
String key = RequestContextHolder.getRequestContext().getFlowExecutionContext().getKey().toString();
log.fine("Returning webflow key: "+ key);
return key;
}
}
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Ben Simpson
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 2.0.1 [ 10255 ] | |
Affects | [Compatibility/Configuration] | |
Assignee Priority | P1 | |
Affects Version/s | 2.0.0 [ 10230 ] | |
Affects Version/s | 2.0.1 [ 10255 ] | |
Assignee | Ted Goddard [ ted.goddard ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Security | Private [ 10001 ] |
Ken Fyten
made changes -
Assignee | Ted Goddard [ ted.goddard ] | Ben Simpson [ ben.simpson ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee | Ben Simpson [ ben.simpson ] | Ted Goddard [ ted.goddard ] |
Ted Goddard
made changes -
Assignee | Ted Goddard [ ted.goddard ] | Ben Simpson [ ben.simpson ] |
Ken Fyten
made changes -
Summary | ICEfaces Flow Execution support | ICEfaces (Spring Web Flow) Flow Execution support |
Salesforce Case | [] | |
Affects | [Compatibility/Configuration] | [Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration] |
Assignee Priority | P1 |
Ken Fyten
made changes -
Salesforce Case | [] | |
Component/s | Sample Apps [ 10010 ] | |
Security | Private [ 10001 ] |
Ben Simpson
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |