Issue Details (XML | Word | Printable)

Key: SHALE-337
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Craig McClanahan
Reporter: sean schofield
Votes: 0
Watchers: 0
Operations

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

Unable to use redirects with dialogs

Created: 16/Nov/06 11:06 PM   Updated: 23/Jan/07 04:40 PM
Return to search
Component/s: Dialog
Affects Version/s: 1.0.4-SNAPSHOT
Fix Version/s: 1.0.4


 Description  « Hide
I'm currently using mod_proxy with Apache 2.x and Tomcat 5.5. Unfortunately I can't start a dialog when doing proxies b/c BasicDialogContext treats all view state transitions as forwards. This ends up confusing my Tomcat server. It would be better if we could specify a <redirect/> option in the view state just like you can with regular JSF navigation outcomes.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Craig McClanahan added a comment - 18/Nov/06 04:38 AM
Improvement completed in nightly build 20061118. You can now declare, in your dialog-config.xml file for the basic implementation, that transitions to a particular view should be done with a redirect instead of the normal call to ViewHandler.createView(). For backwards compatibility, and philosophical compatibility with standard JSF navigation, ViewHandler.createView() is the default.

The underlying mechanism of recognizing a dialog id request parameter is built in to shale-dialog's phase listener, so it would be possible for the shale-dialog-scxml implementation to leverage this approach as well, once it was determined how to represent the request for a redirect in an SCXML configuration file.