webtier@glassfish.java.net

Validation error message missing id of erroneous h:inputText

From: <webtier_at_javadesktop.org>
Date: Tue, 09 Feb 2010 08:40:55 PST

Hi;

I'm using Mojarra JSF 2.0.2 and JSR-303 Bean Validation 3.0-JBoss-4.0.2_02.

My page displays errors using <h:messages layout="list"/>. When using required="true" on an h:inputText, I get an appropriate error message when the field is empty:

    form-id:element-id: Validatation Error: Value is required.

However, when using Bean Validation <f:validateBean/> and the @NotEmpty annotation, I get an error message: "may not be empty". The offending h:InputText id is not specified. Is this a bug, or am I doing something wrong?

While I'm on the topic, is there a way to substitute my own label for the form-id:element-id that appears in h:messages?


Thanks,
Mark
[Message sent by forum member 'markroy' (mroy_at_nuwave-tech.com)]

http://forums.java.net/jive/thread.jspa?messageID=385697