Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 170347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:47:31+00:00 2026-05-11T12:47:31+00:00

In the Web Flow below I bind form data to a flow variable (lifeCycleForm)

  • 0

In the Web Flow below I bind form data to a flow variable (lifeCycleForm) on a submit event in the view state. I have verified that the name, label and description properties are all populated as expected.

However, when the expression in the action state is evaluated all three properties are null. My form bean is serializable and I am just using simple string properties.

What I am doing wrong?

I am pretty new to Spring WebFlow so I might have missed something obvious.

<var name='lifeCycleForm' class='com.btmatthews.freelancer.lifecycle.portlet.LifeCycleForm' />  <view-state id='createLifeCycle' model='lifeCycleForm'>     <binder>         <binding property='name' required='true' />         <binding property='label' required='true' />         <binding property='description' required='false' />     </binder>     <transition on='submit' to='createLifeCycleAction' />     <transition on='cancel' to='lifeCycleCreationCancelled' bind='false' /> </view-state>  <action-state id='createLifeCycleAction'>             <evaluate expression='lifeCycleService.createLifeCycle(lifeCycleForm.name, lifeCycleForm.label, lifeCycleForm.description, null, null)' />     <transition on='success' to='lifeCycleCreated' />     <transition on='failure' to='createLifeCycle' /> </action-state>  <end-state id='lifeCycleCreated' />  <end-state id='lifeCycleCreationCancelled' /> 

Update: I neglected to mention in my original posting that it was my unit tests that were failing. I have since learned that AbstractFlowExecutionTests does not implement binding of request parameters. This seems like a bit of an oversight to me. I have tried latest nightly Spring WebFlow 2.0.4 and the behaviour remains the same.

Update: My problems are that Spring WebFlow mocks do not simulate form submission.

Thanks in advance, Brian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:47:32+00:00Added an answer on May 11, 2026 at 12:47 pm

    To much chagrin, I also recently found out that the Webflow testing mocks don’t use Spring’s binding. Have you tried running the flow using debugging in a container like Tomcat from within an IDE like Eclipse ? If you haven’t, it’ll be very useful. If you need help, I can provide further tips, but to start I’d say download the Eclipse Web Standard Tools and Web Tools Project plugins if you haven’t already.

    Just as a side note, if you really want to be able to unit test binding, you can also still use the Spring Webflow 1 FormActions to bind to the model object, even though it will make your flow slightly more verbose.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 225k
  • Answers 225k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Even though I agree this behaviour is odd, it may… May 13, 2026 at 12:58 am
  • Editorial Team
    Editorial Team added an answer The text-align property actually belongs on the enclosing block element… May 13, 2026 at 12:58 am
  • Editorial Team
    Editorial Team added an answer I think, the maximum size of a cookie depends on… May 13, 2026 at 12:58 am

Related Questions

We have a requirement that has had me skimming the web for quite sometime
For years, Visual Studio.NET has offered absolute positioning for ASP.NET, whereby you can drag
I am trying to determine the best design pattern to use for a business
I'm trying to get a dynamically sized sidebar to float in the upper right

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.