aspose file tools
The moose likes JSF and the fly likes Why can't I see my validation errors? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Why can Watch "Why can New topic
Author

Why can't I see my validation errors?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 434
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

Joined: Sep 21, 2008
Posts: 177
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why can't I see my validation errors?
 
Similar Threads
MyFaces - HtmlSelectOneMenu and ValueChangeEvent
Changing appearance of form fields with validation errors
No Required validation in xhtml + JSF
h:commandLink and onsubmit
JSF View