Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Spring Webflow - Unable to invoke annotation validation on a model bean

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see the code snippet below. I My flow starts with display of a simple JSP with 3 fields. When i submit the form, i want the validations (JSR-303), configured via annotations on the form bean, to kick in and show the error messages. But that is not happening. The page is getting submitted to searchActions.findExistingPlayer method. Any pointers will help.

Config file:


Action mapping


Form:


Web flow context:


JSP



An update - I have also tried the model binding in the view state. It also fails to invoke the JSR-303 annotation validations on my bean.

What has worked so far is the custom validate${view-state-id} method. See below:


Flow.xml

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!