Hi, is it possible to pass field's name for validator "required" so I to print next to field validation?
My code
jsp ...
<h

utputText value="USERNAME" /><h:message for="username" ></h:message>
<h:inputText id="username" value="#{user.username}" required="true"><h:message for="username" style="color: red" /></h:inputText>
My file with custum messages is:
...
javax.faces.component.UIInput.REQUIRED=Value is required.
...
I would that message is: Value for "username" is required.
Thanks.