Is there a way to have different eventId(s) with different view states, but with the same view?
For example:
View
What goes into view-state1 and view-state2?Code:<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <form:form modelAttribute="daForm"> <c:if test="view-state1"> <input type="submit" id="next" name="_eventId_next" value="NEXT" /> </c:if> <c:if test="view-state2"> <input type="submit" id="save" name="_eventId_save" value="SAVE" /> <input type="submit" id="cancel" name="_eventId_cancel" value="CANCEL" />" /> </c:if> </form:form>
Flow.xml
Could somebody please help me with this issue?Code:<view-state id="view-state1" view="view" model="someModel"> <transition on="next" to="view-state2" /> </view-state> <view-state id="view-state2" view="view" model="someModel"> <transition on="save" to="save" /> <transition on="cancel" to="cancel" bind="false" /> </view-state> <end-state id="save" /> <end-state id="cancel" />
Thanks
Alex


Reply With Quote
