2 Replies Latest reply on Mar 9, 2006 6:04 PM by perwik

    FacesMessages.add()

    perwik

      I was taking a look at the new FacesMessages component. Section 3.3 in the latest (from CVS as of this post) documentation says

      You can even include JSF EL expressions in a faces message summary:

      facesMessages.add("Document #{document.title} was updated");


      Or, use an internationalized message:

      facesMessages.addFromResourceBundle("success.DocumentUpdated");



      Im missing a method that takes this input:
      add("success.DocumentUpdated", "#{document.title}")

      so that my message "Document {0} was updated" works.
      This method should have a variable number of strings as arguments where the frist string is a resource key and and the rest are replacement strings (with EL support).

      I guess I should post a JIRA, but I'd like to know if there's something I've overlooked first.