Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Based on user mailing list discussions with Paul Spencer (paulsp AT apache.org) and others, it would be nice to enable existing applications that use a session scoped variable to store "dialog" state information to using the dialog manager facility, without having to modify their pages or action methods. In particular, this means that value binding expressions using the name of the session scoped data bean should continue to work after migration.
This use case would be facilitated by adding onActivate() and onDeactivate() callbacks ot the DialogContextListener interface, which would be invoked when a DialogContext instance is first placed into service for a request, and when it is removed. Then, provide a convenience DialogContextListener implementation which can be configured with a list of value binding expressions whose getValue() method should be called on deactivation (with the data stored in session scope), and whose setValue() method should be called on reactivation (pushing the data back into now-request-scope variables).