j.palleschitz schrieb:
hi, in case of a required-field validation i get a message that starts with
/formid:nameoffield: text of the validation/

is it possible to customize the validation-messages only to
/nameoffield: text of the validation/ ???

i have already defined a custom message in my message.properties, but the {0}
return "formid:nameoffield".
(javax.faces.component.UIInput.REQUIRED={0}: you have to enter something!)

thats not really nice to read for the users.

any ideas?
In JSF1.2, every input component has an optional "requiredMessage" property. So you can do: <h:inputText id="userName" required="true" requiredMessage="You must enter a user name" ... />

Regards,
Simon

Reply via email to