2 Replies Latest reply on Feb 7, 2007 8:59 PM by Fernando Montaño

    facesMessages.addFromResourceBundle params issue

    Fernando Montaño Expert


      I have this in my .properties file:

      Common.message.deleted = #0 was deleted successfully.

      Then in my action component I did the following:
       "Common.message.deleted", user.getFullName());

      Supposing the user.getFullName() returns "Joe Foe", what I expect in the page as result of the message is:
      Joe Foe was deleted by successfully.

      But I don't get above message, I always get:

      #0 was deleted successfully

      Then when I do this, it works:

       "Common.message.deleted", new Object[]{user.getFullName()})

      My question is: Why the first way is not working?

      Anyone knows how to get this working?

      Thanks in advance.