• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why can't I see my validation errors?

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using MyFaces 1.2. On my form, to display the validation errors, I have this ...



I also have fields in my form similar to this one ...



However, if I do not fill in a value for the above field (for example), and click Submit, I am returned to the form with this field, but no message displays on my page. But I have that "h:messages" tag, so I was hoping someone could offer some suggestions for troubleshooting or tell me what I was doing wrong.

Thanks, - Dave
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dave Alvarado wrote:Hi,


I also have fields in my form similar to this one ...



Do you mean that you have fields with the same id? You cannot have components with the same id in a JSF view.
Otherwise, if your style sheet classes are not hiding the message , then what you have should work!
 
reply
    Bookmark Topic Watch Topic
  • New Topic