Pamungkas,
A custom error message for length validation can be achieved by creating a property file with a key of:
Then adding the following tags your faces-config.xml:
In the above example, replace com.mycompany with the correct package name, and MyMessageBundle with the file name you gave your property file.
A similar technique can be used for customizing the required field validation message.
This technique is covered in detail in my book,
Java EE 5 Development With GlassFish Application Server
Hope that helps,
David
[ October 29, 2007: Message edited by: David Heffelfinger ]