File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSF
Bookmark "which type of jsf validation is preferrable?" Watch "which type of jsf validation is preferrable?" New topic

which type of jsf validation is preferrable?

prasad neena

Joined: Jan 03, 2013
Posts: 11

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: 17421

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: which type of jsf validation is preferrable?
It's not a secret anymore!