If you use the Myfaces Tomahawk components (t:inputXYZ), then the
label will be used instead of the id if specified.

On 1/9/06, John Holland <[EMAIL PROTECTED]> wrote:
> I ran into this problem also but I didn't want the id to be displayed
> but something more user friendly (like the label).  Apparently Oracle's
> ADF allows you to specify a Label for error messages (so they make
> sense) but MyFaces does not.
>
> The only way I've found to work around this is to use a custom
> converter, which is horrible.
>
> -----Original Message-----
> From: Claudio Tasso [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 09, 2006 4:21 PM
> To: MyFaces Discussion
> Subject: Re: Overriding error message...
>
> Marco ha scritto:
>
> > I have an input text, Its value is binded to a double property in a
> > managed bean.
> >
> > And if the input was not a number the following error message is
> displayed
> >
> > "budget": Specified value is not a valid number.
> >
> > But i want to override this message, so what should i do ?
> >
> > Thanks
>
> Create a text file, for example org.apache.Messages.properties",  like
> this:
>
> javax.faces.component.UIInput.CONVERSION=My custom message
>
> Then, modify your faces-config.xml:
>
> <application>
>         <message-bundle>org.apache.Messages</message-bundle>
>     </application>
>
> For more information, look at JSF spec documentation: everything is
> explained.
>

Reply via email to