I know people have asked this question, but I don't seem to find a suitable response. So want to frame the Question again.
We need to build a responsive application, which will be used to create order by our customers.
I started looking into Spring4 Webflow and even created a sample pizza application [thanks to Spring in Action] works well as we need our application to be very scalable and this looks like a way to go.
The problem we have is - we are using AngularJS + Spring MVC/REST everywhere else in our applications. For WebFlow it looks like we need to use spring form i.e binding is done by Spring, plus other collisions between angularJS and Spring WebFlow. Is there a way to use Spring WebFlow + AngularJS together where we utilize angular full potential but still use WebFlow for mimicking conversational behaviour?
createPizza.jsp
<form:form commandName="pizza">
<input type="hidden" name="_flowExecutionKey"
value="${flowExecutionKey}"/>
order-flow.xml
<view-state id="createPizza" model="flowScope.pizza">
<on-entry>
<set name="flowScope.pizza"
value="new com.springinaction.pizza.domain.Pizza()" />
<evaluate result="viewScope.toppingsList"
expression="T(com.springinaction.pizza.domain.Topping).asList()" />
</on-entry>
<transition on="addPizza" to="showOrder">
<evaluate expression="order.addPizza(flowScope.pizza)" />
</transition>
<transition on="cancel" to="showOrder" />
</view-state>