Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which type of jsf validation is preferrable?

 
prasad neena
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic