java - Spring web flow don't redirect after post submission -
i encounter strange issue in project using spring web flow 2.4.0. in documentation of web-flow project can read on chapter 2 following statement:
by default web flow client-side redirect upon entering every view state.
my concern when submit form web flow not make redirection implies new form submission made if user reload or refresh page. boring. tried many things , found couple of solutions on web example make redirection programmaticaly following code :
context.getexternalcontext().requestflowexecutionredirect();
and found attribute "redirect" tag view-state in flow configuration. when set true works fine.
since web flow documentation mentions behavior (redirect automatically ) default 1 , heard better way after form submission.
i looking kind of post redirect pattern.
thank , sorry english :)
just verify springwebflow xml file configuration, because of redirect flag set false in flow-execution-attributes.
<webflow:flow-execution-attributes> <webflow:always-redirect-on-pause value="true"/> <webflow:redirect-in-same-state value="true"/> </webflow:flow-execution-attributes> </webflow:flow-executor>
Comments
Post a Comment