wood burning stoves 2.0*
The moose likes JSF and the fly likes which type of jsf validation is preferrable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "which type of jsf validation is preferrable?" Watch "which type of jsf validation is preferrable?" New topic
Author

which type of jsf validation is preferrable?

prasad neena
Greenhorn

Joined: Jan 03, 2013
Posts: 11
Hi,

In JSF we are having 4 types of validation types

1.manual validation

2.implicit validation

3.explicit validation

4.custom validation.

which is preferrable for small and medium level projects for validating form fields?

Any suggestions would be greatly appreciated.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

I have a nasty feeling that this is being used as some sort of silly job interview question.

The type of validation that is preferable is the type that does the job. If more than one type does the job, pick the one that seems most useful/simple/attractive to you.

Given various types of validation that can happen at different levels of a request/response process, I prefer to screen the data as close to the request origination point as possible, for the simple reason that there's no point is doing a lot of work that will have to be thrown away if you can detect the problem before you do the work. But I'm not sure the validation types you listed make that distinction.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: which type of jsf validation is preferrable?