3 Replies Latest reply on Jul 8, 2008 8:21 AM by ravikumar.gokaravikumar.hotmail.com

    Issues with messages.properties when I go one step deep

    ravikumar.gokaravikumar.hotmail.com

      Hi,
      I am working on seam. I have a user creation page. In this page i want to use messages.properties to display the labels. I am able to use the properties file with out any problem by using simple labels. When i go one step deep it is throwing an exception showing an exception

      javax.el.PropertyNotFoundException

      . For example in my properties file i have
      userName = User Name

      . I can use this property to display the userName label as
      #{messages.userName}

      .
      But if i have
      user.usrName = User Name

      in the properties file how can i user this to diplay the User Name label. It is not working with
      #{messages.user.userName}

      as it is throwing the above mentioned exception.


      Thanks in advance




      The code:


      addUser.xhtml


      <h:outputLabel for="userName" value="#{messages.user.userName}"></h:outputLabel>
      
      messages_en.properties:
      user.userName=User Name