Announcement Announcement Module
Collapse
No announcement yet.
Spring Webflow Frustrations Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Webflow Frustrations

    Hi There,
    I have a flow defined as pasted below
    <on-start>
    <evaluate expression="registerActions.initializeForm(type)" result="flowScope.registration" />
    </on-start>

    <view-state id="enterPersonalDetails" view="registration/registrationForm" model="flowScope.registration">
    <transition on="submit" to="registrationComplete" bind="true">
    <evaluate expression="registerActions.save(flowScope.registr ation)"/>
    </transition>
    </view-state>

    when the enterPersonalDetails view state evaluates the expression,by calling my registerActions.save() method, the registration bean does not have anything in it, looks like the form fields are not being bound to the bean.

    a snippet from my jsp is pasted below:
    <form:form name="registerForm" modelAttribute="registration" method="post">
    <form:input path="username" cssClass="text" tabindex="1"/>
    </form:form>


    the save method from the actions class is pasted below: the username debug returns null even though i'm entering a value from the ui, what gives?

    i'm using spring mvc 3.0.5 and spring webflow 2.3.0
    public void save(RegistrationForm form){
    log.debug("save registration invoked with "+form.getUsername());
    }
Working...
X