File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes inputText : Validator Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "inputText : Validator" Watch "inputText : Validator" New topic
Author

inputText : Validator

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
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?


I am slow but sure
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14568
    
    7

Look at the tag docs again for the validate attribute:


Validators don't return things. They either exit normally or they throw ValidationExceptions.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: inputText : Validator
 
Similar Threads
Problem In Validator Interface
spring
html:error --- validator..
Stopping the struts validation for a particular non-displayed fields
Tricky Struts Validator Question