3 Replies Latest reply on Sep 29, 2008 8:16 PM by danielc.roth

    Messages with arguments {0}, {1}, etc

    benmoore

      Hi,


      I have a message.properties key like this:


      foo=Last Login {0}


      I want to replace {0} at runtime with a custom value and insert value into a database. I don't want to display it to the user, so FacesMessages isn't the way to do it.


      How can I use Message or Messages with EL expressions in Java (not JSF or Facelets code)? I know Messages.getInstance, but this just gets name/value pairs of Strings. It doesn't allow me to replace {0}, {1}, etc.


      Thanks !!