MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
P0rridge
Post subject: How to implement @Valid within WebFlow - need to upgrade?  PostPosted: Jan 19, 2012 - 04:44 PM
Registered Member
Registered Member


Joined: Jun 20, 2010
Posts: 143

I would like to start using @valid annotations for my webflows.

But it seems ME4S is Webflow version 2.0? Which means I need to update to 2.3? If so, what is the recommended process?

I understand to get the @valid implemented you need to
1) add the @valid annotations to your domain class attributes
2) add <form:error tags to the corresponding jsp page
3) add validator="validator" to the <webflow:flow-builder-services
4) add this bean <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean" />

but in step 3) ME4S gives a message that validator="validator" is not allowed.

Google says that is because the
- http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd
should be
- http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.3.xsd

but you ME4S tells me you cant change the 2.0 to 2.3

Is that because we are on webflow 2.0?

If so, what is the recommended update process?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits