Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why can't I see my validation errors?  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • 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
 
Kavita Tipnis
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • 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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!