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 8483685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:10:27+00:00 2026-06-10T20:10:27+00:00

How do I update data in a Spring WebFlow Model and Pass it back

  • 0

How do I update data in a Spring WebFlow Model and Pass it back to the same view.

I have a project that I am working on and if the user picks a item from a selectbox I need to go back to the server in fill in some data to the model that needs to be displayed on the view.

You can see from my view-state that once the item is picked I setoff a transition for SelectBoxPicked and call my controller with the model but how do I return the updated model to the view?

Can someone please tell me what to put into my java (controller) code and also in my flow.xml to make this work.

<view-state id="SchoolVisitReport" view="SchoolVisitReport.jsp" model="visit" >
 <transition on="submit" to="addVisit">
  <evaluate expression="flowActions.validateVisit(visit, messageContext)"/>
 </transition>

 <transition on="loadSchools" to="SchoolVisitReport" >
  <evaluate expression="flowActions.initializeSelectableSchools(visit)" result="flowScope.selectableSchools"/>
 </transition>

 <transition on="SelectBoxPicked" to="SchoolVisitReport" >
  <evaluate expression="flowActions.fillDetails(visit)" />
 </transition>


  <transition on="cancel" to="endState" bind="false"/>
</view-state>
  • 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. Editorial Team
    Editorial Team
    2026-06-10T20:10:28+00:00Added an answer on June 10, 2026 at 8:10 pm

    That basic approach works; we’ve used it ourselves. The Java code you call from the evaluate method can return false to prevent the transition, although that will just transition back to the current state anyway. I believe anything other than false will take your transition.

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

Sidebar

Related Questions

I have developed an application with Spring MVC that deals with bulk data insert/update.
I use this code to update data in database table. Can reuse same code
I need to insert, delete and update data using a xml file. I have
In general, how do you guys handle user update/data freshness interaction with the user
Using: Spring 3.1.0.RELEASE, Spring Data MongoDB 1.0.0.RELEASE I have a document class defined like
So i'm working on a project (JSF2, Spring3 Core, MVC, Webflow, MyBatis3, RichFaces, and
I have a spring scheduled job ( @Scheduled ) that sends emails from my
I have an application built on Spring MVC that uses Hibernate for all of
I'm working on some data access logic with Spring, my question has to do
I am working with Spring and Hibernate. I have an object which was retrieved

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.