You can add a properties file which overrides the default messages. Here are
some that we have used in the past

javax.faces.component.UIInput.REQUIRED=* value required.
javax.faces.component.UIInput.CONVERSION=* invalid.
javax.faces.validator.NOT_IN_RANGE=* value must be between {0} and {1}.
javax.faces.validator.LongRangeValidator.TYPE=* must be a number.
javax.faces.convert.IntegerConverter.CONVERSION=* must be a valid number.
javax.faces.convert.DoubleConverter.CONVERSION=* must be a valid number. 

-----Original Message-----
From: Michael Ageeb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 5:50 AM
To: MyFaces Discussion
Subject: Adding star while rendering all required InputText

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
   Is there a way to render a red star concatenated to any InputText with
the required attribute set to true?

I've an application with a lot of those InputText with their required set to
true and I don't want to change the code for each manually .
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEoP9bs6YiuH6FszARAotVAJ4jC7LKvwHQlYUHF8IPk6R+66xlngCeJFKI
yY2O3GnNfdnwus48RUfcTss=
=d+8u
-----END PGP SIGNATURE-----

Reply via email to