File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Client side validation in JSF 2.0? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Client side validation in JSF 2.0?" Watch "Client side validation in JSF 2.0?" New topic

Client side validation in JSF 2.0?

Namitha karupaiya
Ranch Hand

Joined: Mar 10, 2004
Posts: 89
Are there any built-in facilities to do client side validation for JSF 2.0 components?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

In an ideal world, you'd define a validator and the JSF HTML generator would generate both client and server-side validation as long as the client had JavaScript enabled and you didn't otherwise suppress that option. You don't want client-side only because of hacking considerations.

I'm not sure how closely JSF2 approaches that ideal, however.

An IDE is no substitute for an Intelligent Developer.
subject: Client side validation in JSF 2.0?
It's not a secret anymore!