Hi, I would like to display a message to a user after they have submitted a form. I am using the [url=http://en.wikipedia.org/wiki/Post/Redirect/Get]Post/Redirect/Get[/url] pattern so that a page refresh doesn't cause the form to be resubmitted.
I had intended to use spring [url=http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-flash-attributes]flash attributes[/url] in the controller, but have found that Blossom spring configuration uses the deprecated [url=http://docs.spring.io/spring/docs/3.2.x/javadoc-api/org/springframework/web/servlet/mvc/annotation/AnnotationMethodHandlerAdapter.html]AnnotationMethodHandlerAdapter[/url] instead of the newer [url=http://docs.spring.io/spring/docs/3.2.x/javadoc-api/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.html]RequestMappingHandlerAdapter[/url]. I have had a go at using the new HandlerAdapter (by rewriting BlossomHandlerMapping) and the new HandlerMapping class instead, but these don't seem to be compatible with Blossom and especially TemplateExporter as the new handler mapping doesn't extend AbstractUrlHandlerMapping. This means that none of the spring beans are then registered with Magnolia as templates etc. In Jira I found [url=http://jira.magnolia-cms.com/browse/BLOSSOM-167]BLOSSOM-167[/url] which is a task to upgrade Blossom to Spring 4, but I was hoping for some halfway house so that Blossom supports the new Spring 3.1 features. Can anyone therefore suggest alternative approaches instead of flash attributes, or has anyone managed to get them working instead? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=a4a17380-52b0-4ec0-9754-b01aee949c66 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
