Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.1
-
Fix Version/s: 3.1.0.BETA1, 3.1
-
Component/s: Framework
-
Labels:None
-
Environment:ICEfaces
-
Assignee Priority:P1
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
PersistentFaces.State.redirectTo() allows a redirect to be pushed to the browser, but ICEfaces 2.0 PushRenderer does not provide this feature.
Activity
Ted Goddard
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 2.1 [ 10241 ] | |
Affects | [Documentation (User Guide, Ref. Guide, etc.)] | |
Assignee Priority | P2 | |
Assignee | Mircea Toma [ mircea.toma ] |
Ted Goddard
made changes -
Assignee | Mircea Toma [ mircea.toma ] | Ted Goddard [ ted.goddard ] |
Ted Goddard
made changes -
Salesforce Case | [] | |
Assignee Priority | P2 | P1 |
Ken Fyten
made changes -
Fix Version/s | 3.1 [ 10312 ] | |
Fix Version/s | 3.0 [ 10241 ] |
Ken Fyten
made changes -
Assignee | Ted Goddard [ ted.goddard ] | Jack van Ooststroom [ jack.van.ooststroom ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Fix Version/s | 3.1.0.BETA1 [ 10335 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #29058 | Wed May 16 09:23:16 MDT 2012 | jack.van.ooststroom | Fixed JIRA |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/resources/META-INF/faces-config.xml
MODIFY /icefaces3/trunk/icefaces/core/src/main/resources/META-INF/core.taglib.xml ADD /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/component/Redirect.java |
Jack Van Ooststroom
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
It should be possible to implement this with no bridge, core, or ICEpush modifications:
On pages that support redirection:
<ice:redirect href="#
{bean.redirectLocation}" />
If href is not null or empty, the redirect component adds an exec navigator.location=href to the partial response and invokes responseComplete(). This can be used when invoked via push or via a user interaction.
The "trick" in using this technique is to store the href so that it is accessible during rendering. Since a typical use case would be to trigger a redirect in one session from another, the method required would be to store the href in the application database, then invoke PushRenderer.render(). Another common case would be a redirect triggered via push after a long-running process. In that case, the completion of the long-running process can set the href and store it along with the completion status of the process.