-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Flash Scope for Spring MVC (Without Spring Web Flow) [SPR-6464] #11130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Keith Donald commented A couple of things to keep in mind when implementing flash scope:
|
Keith Donald commented Working filter-based prototype attached.
|
Micha Kiener commented I'm going to add this for Spring 3.1 along the Conversation Management. By default, the map will be stored in window scope, if activated otherwise in session scope. |
Mike Youngstrom commented A couple of questions:
Thanks, |
Marcel Overdijk commented Will this be part of Spring 3.1? Als greenhouse project would benefit from this as it uses a 'custom' implementation. |
Stephen Patrick commented will this be part of 3.1? it will be very beneficial. |
Marcel Overdijk commented
|
Clemens Fuchslocher commented The spring-mvc-showcase from Keith Donald contains an implementation of a custom flash scope in the package org.springframework.mvc.extensions.flash.
It is used in the FormController example to save a success message if JavaScript is disabled. The FlashMapFilter adds all elements of the FlashMap to the request scope of the next request. The elements of the FlashMap are saved in the session. There is one drawback with this implementation: One FlashScope per session could be a problem if the user works with multiple browser windows or tabs at the same time. For example, Stripes uses an additional parameter to distinguish between multiple flash scopes:
|
Rossen Stoyanchev commented Flash attribute support is now available. The javadoc for To answer some of the specific questions raised above:
Flash attributes are automatically merged into the model and are therefore available for rendering.
We've taken a slightly different approach. Rather than adding a framework-specific generated key, |
Donny A. Wijaya opened SPR-6464 and commented
Geert Pante submitted the codes for this issue at: MOD-458.
Affects: 3.0 RC2
Reference URL: http://forum.springsource.org/showthread.php?t=73939&highlight=flash+scope
Attachments:
Issue Links:
31 votes, 29 watchers
The text was updated successfully, but these errors were encountered: