This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Strange setup bean behaviour with validation

Jun 18th, 2005, 10:43 AM

Hi,
I've stumbeld across a strange behaviour of the new setup bean action element when it is used togehter with validation. Don't know if it's a bug or if I do something wrong(which might be more probable ) 8).

When I define my workflows with the new setup bean action element and the form is redisplayed for correction because a validation error occured, no error messages are shown. When I replace the setup bean action with a "normal" action state for the setupForm method of my FormAction, error messages are shown correctly.

Damn it, just stumbled across this line in the Preview 4 - Completed Changes change log:

Fixed problem with 'form states': view states that use a setup action and a bindAndValidate when transitioning out of the state. The validation errors generated by the bindAndValidate were being overwritten by the setupForm action when the view state re-entered.

think that's it, i will download the latest version from the CVS now and try again.[/quote]

The migration is still in progress. In particular the Portlet related code has yet to find a new home.

Anyway, to build it, you have to pull in ALL the sub-modules of "spring-projects". Once that is done, you can do "build dist" in the spring-webflow module to build a SWF jar that you can use with the existing webflow-support.jar.

Is there a complete PR4 jar in the CVS? I've checked out the whole spring-projects in Eclipse and then tried to run the build.xml file in the spring-webflow folder. The build fails with the following error message: