Hi All,
I have a property file which contains a key value pair as shown below:
message.required.Company.title=Please enter a Title for the Company.
My text box which prompts for company title is :
<h:inputText id="name" value="#{myBean.strTitle}" required="true" requiredMessage="#{messages.message.required.Company.title}" />
The required message value is not displaying and throws error:
property required
not found on bean.
But if I defined a single word key then it runs.
How can I defined multiple words key seperated by . in a property file and access them in XHTML file.
Thanks
Ambrish
Hi All,
My problem is solved.
I have used ,
requiredMessage = "#{messages['message.required.Company.title']}"
Thanks
Ambrish