Ok, so there is some flexibility.  My spec, however, says that the message
for a required field should appear as such:
{0} is a required field.

which, for the "First Name" field, would result in:
First Name is a required field

To my knowledge, there is no facility to pass in a user friendly label for
the field...just the id of the component.  Is this accurate?



Gilles DEMARTY wrote:
> 
>> I have indeed looked at that.  Is there a way to customize the resulting
>> error message?
> yes, you can load a message bundle and redefine the default error messages
> 
> http://jsffaq.com/Wiki.jsp?ptitle=How+can+I+override+the+default+validation+messages%3F&page=HowCanIOverrideTheDefaultValidationMessages
> 
> 
> 2006/10/25, monkeyden <[EMAIL PROTECTED]>:
>>
>>
>> Dennis Byrne wrote:
>> >
>> > Hello monkeyden,
>> >
>> > You may want to look at the 'required' attribute for the JSF tag you
>> are
>> > using.
>> >
>> > Dennis Byrne
>> >
>> >>-----Original Message-----
>> >>From: monkeyden [mailto:[EMAIL PROTECTED]
>> >>Sent: Wednesday, October 25, 2006 10:23 AM
>> >>To: [email protected]
>> >>Subject: So let me get this straight....
>> >>
>> >>
>> >>Based on what I've read on this forum, which happens to be a very
>> valuable
>> >>resource of mine, I find this to be true (corerect me if I'm wrong and
>> >>please excuse my fledgling knowledge of JSF):
>> >>
>> >>You cannot use a validator to do null value validation on a field,
>> because
>> >>JSF doesn't call the validator if there is no value to validate.  As a
>> >>result, you cannot print custom error messages on the client, unless of
>> >>course you validate in the backing bean.
>> >>--
>> >>View this message in context:
>> http://www.nabble.com/So-let-me-get-this-straight....-tf2507926.html#a6993052
>> >>Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/So-let-me-get-this-straight....-tf2507926.html#a6993410
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/So-let-me-get-this-straight....-tf2507926.html#a6994195
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to