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.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer