1 Reply Latest reply on May 18, 2009 12:37 PM by Ambrish Singh

    Setting requiredMessage attribute value from property file.

    Ambrish Singh Newbie

      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