aspose file tools
The moose likes JSF and the fly likes Custom Validator for required field. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Custom Validator for required field." Watch "Custom Validator for required field." New topic
Author

Custom Validator for required field.

komal ekbote
Greenhorn

Joined: Jun 20, 2007
Posts: 17
Hello all,
Can anyone please tell me ho to override the validator for the required field.
Instead of using required="true" I want to implement my validator for checking it.
Paul Morano
Greenhorn

Joined: Oct 08, 2002
Posts: 8
One way I've done this is to create a validate() method in your backing bean which can be called when the page posts.
[ February 26, 2008: Message edited by: Paul Morano ]
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

"Paul M M", please check your private messages for an important administrative matter.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: Custom Validator for required field.
 
Threads others viewed
error in validation
struts2 field validator type boolean and all possible field types.
Struts2 validation localization problem
struts2 radio button validation
Struts 2 Validation
IntelliJ Java IDE