Hi!
I'm very new in spring and webflow, and i have some troubles for understand a few things.
I have a form and when i click on a <a> (the call is ok) it doesn't bind my form.
Some code:
flow.xml
indicatorControllerCode:<var name="model" class="org.fidesol.bestmark.flowController.IndicatorController" /> <view-state id="form" view="editarIndicadoresEntidad/form" model="model" > <transition on="add"> <evaluate expression=" model.addValue(messageContext)" /> </transition> </view-state>
jspxCode:public class IndicatorController implements Serializable { String value; String note; private static final long serialVersionUID = 12L; /*GETTERS AND SETTERS*/ ........ public boolean addValue(MessageContext messages){ ...... }
The form is seen ok, but when i change the values, those doesn't bindCode:<form method="POST" > <input type="text" name="note" value="${model.note}" id="note"/> <input type="text" name="value" value="${model.value}" id="value"/> <a class="btn" href="${flowExecutionUrl}&_eventId=add"> i</a> </form>
Any idea of my problem?
I proved also with <form:form> but i don't know how to use modelAtribute option
Any help would be apreciatted.
Thanks!


Reply With Quote