• Post Reply Bookmark Topic Watch Topic
  • New Topic

Client side validation in JSF 2.0?

 
Namitha karupaiya
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any built-in facilities to do client side validation for JSF 2.0 components?
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!