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

inputText : Validator  RSS feed

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In <h:inputText id='"UserNo" validator=""#{UserNumber.validate}/>
Here for validator attribute which is method binding expression, the method should have non-void return type as per the Spec.
Then how do we get to know the result of validation from such method that doesn't return anything?
 
Tim Holloway
Bartender
Posts: 18660
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the tag docs again for the validate attribute:


Validators don't return things. They either exit normally or they throw ValidationExceptions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!