Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

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


Web flow context:


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:


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