facebook

How to implement @Valid within WebFlow – need to upgrade?

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #322474 Reply

    Greg Soulsby
    Member

    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

Viewing 1 post (of 1 total)
Reply To: How to implement @Valid within WebFlow – need to upgrade?

You must be logged in to post in the forum log in