Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IF validation fails THEN execute business logic

 
Jorge Fiallega
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a form with 20 fields, each one of them with different validation rules, some custom validations and some validations on the tags.

If any of the validation of any of the 20 fields fail, I would like to do some clean up of some objects prior to renderresponse renders the page and shows the errors in the page.

I would like to know what is the JSF way to do this. Is a Phase listener the only way to do it?

Thanks

Jorge Luis
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm very curious what kind of cleanup you need on a failed validation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!