posted 13 years ago
Short answer: No.
Longer answer: Raw JavaScript doesn't understand the subtleties of JSF and the fact that it is client-side only is a liability when backing beans need to be consulted, because then you have to set up an AJAX request to query the server.
I normally have server-side validators because while they do carry penalties, I consider the penalties of allowing a client to bypass validation (possibly with malicious intent) to outweigh the benefits. That being said, there's absolutely no technical reason why someone couldn't create an extension tagset that validated in BOTH places - on the client side for performance and on the server side for security. I've been hoping someone would do that for years now, but haven't seen anything yet.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.