1 Reply Latest reply on Jun 30, 2008 2:33 PM by nimo stephan

    using messages.properties for displaying Labels

    Ravi Kumar Newbie

      Hi,
      I am new to seam framework. I have an application in which I want to user messages.properties file for displaying the labels user.xhtml file. When I use the value attribute for h:outputLabel it is not displaying the value described in the properties file. I have gone through the seam reference manual also and could not able to fix this.


      can anybody suggest me how to use the properties file for displaying the text as Label in the user.xhtml.


      Thanks in advance.


      Below is the my code:



      user.xhtml:
      
      <h:outputLabel for="userName" value="#{messages.userName}"></h:outputLabel>
                                      <h:inputText id="userName" value="#{adduser.userName}">
                                      <s:validate/>
                                      </h:inputText>
      
      messages_en.properties:
      userName=USER NAME