Use the t:message/t:messages tags, and MyFaces will automatically use
the label (or the column header if you are in a table) for the field
identification.

Bear in mind that this is MyFaces specific!

regards,

Martin

On 8/24/05, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote:
> When going from JSF 1.0 to MyFaces JSF, I noticed that the detailed
> message that gets displayed when one specifies required="true" now
> includes the name of the field.  Is that something that's specific to
> MyFaces, or is it part of JSF 1.1?
> 
> Also, related to that, is that message now overridable?  I seem to
> recall that, unlike the messages for other validators, the message for
> required="true" is not overridable.
> 
> Finally, is it possible for the message to refer to the name of the
> field in some way other than through the id of the field?  Our IDs
> cannot have spaces in them, which requires compound names to get
> concatenated.  This is fine for internally used variables, but users get
> a little freaked when they see a name like ModuleID instead of "Module
> ID".  One thought I had was to use the field's title in the message
> instead of the field's id.
> 
> Thanks,
> 
> - Brendan
> 


-- 

http://www.irian.at
Your JSF powerhouse - 
JSF Trainings in English and German

Reply via email to