@SessionAttributes to be exposed in model even when not referenced in current handler method [SPR-6084] #10752
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Daniel Alexiuc opened SPR-6084 and commented
I've discovered some confusing behaviour when trying to use two models in a page.
When I do a GET followed by a POST using this controller...
...object2 gets cleared from the Model. It no longer exists as a
@SessionAttribute
and cannot be accessed on my view page.However if the signature of the second method is modified to this...
...then object2 does not get cleared from the model and is available on my view page.
The javadoc for
@SessionAttributes
says:But I don't see how I have indicated completion of the conversational session in the first example but not in the second example.
This behaviour seems like a bug - I believe that object2 should remain in the model until I have indicated that the conversational session is complete.
Affects: 2.5.6
Reference URL: http://forum.springsource.org/showthread.php?t=77305
Issue Links:
The text was updated successfully, but these errors were encountered: