File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Custom Message Property is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Custom Message Property is not working" Watch "Custom Message Property is not working" New topic
Author

Custom Message Property is not working

Yahya Arshad
Greenhorn

Joined: May 15, 2011
Posts: 26
i have made a custom property file with name customMessages
and placed it in the package com.atwork

i also registered it in faces-config as

<application>
<message-bundle>com.atwork.customMessages</message-bundle>
</application>

and .properties file contains



javax.faces.component.UIInput.REQUIRED=This field is required.
javax.faces.component.UIInput.REQUIRED_detail= Please fill in this field.
javax.faces.validator.LengthValidator.MAXIMUM= This field must be at least {0} characters long.


but it my page still displaying native errors of input field
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom Message Property is not working