3

I have a Spring 4.1.7 + Spring WebFlow 2.4.1 + JSF 2.0 project. I would like to get rid of the request parameter that is added by Spring WebFlow, i.e. execution=e15s1. I want to get rid of this during transition of the view state as well.

<webflow:flow-execution-attributes>
    <!-- without execution param -->
    <webflow:always-redirect-on-pause value="false"/>
</webflow:flow-execution-attributes>  

I have put the above configuration in flow executor. It helps for start state, but when submitting a JSF form like below,

<h:form id="loginForm"> 
  <h:commandButton  value="Login" class="button button-sp" action="Hotelier"/>
</h:form>

the Spring WebFlow request parameter shows up in URL again like so ?execution=e12s1.

How can I get rid of it?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • Sorry, but Spring webfow is designed to work on Spring MVC. Trying to configure it for JSF would be a headache for you, as JSF has its own flow. Totally incompatible frameworks, IMHO. What you can do is replace JSF by Spring MVC or just remove the Spring webflow from your project, keeping JSF + Spring core. – Aritz Oct 01 '15 at 20:41
  • Faces flow is only available since JSF 2.2, indeed making Spring WebFlow superfluous. On a second thought after cleaning up your question, what exactly do you need Spring WebFlow for if you apparently don't want the flow scope at all? – BalusC Oct 01 '15 at 21:25
  • What about Spring MVC and JSF? – NIKET BHANDARY Oct 02 '15 at 16:50
  • Food for read: http://stackoverflow.com/q/18744910 – BalusC Oct 04 '15 at 13:08
  • put this question on the SWF Jira page and see what they say: https://jira.spring.io/browse/SWF – Selwyn Oct 04 '15 at 16:46
  • the question is not clear. what is hapening in your flow.xml on the Hotelier action? and what do you expect to happen? – Hossein Oct 06 '15 at 08:52

0 Answers0