This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IF validation fails THEN execute business logic  RSS feed

 
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!