Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

JSF Validation

Ranch Hand
Posts: 15304
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, validation in JSF is giving me a little grief. And the books that are available right now aren't covering what I am trying to find out. Also, Sun's forum were no help, big surprise.
I am using the built in validateLength with JSF 1.0. The problem is that the error message is horrible.
Validation Error. Value is required
What I need to do is customize that message and I can't find any resources that really tell me how to do this. I know I can make my own validator class, but I am pretty sure I should be able to include this error information in my ResourceBundle somehow and direct the <h:message for=""../> to the appropriate error message for a specific field.
If anyone has any insight on how this can be done, I would really appreciate it.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic