1 Reply Latest reply on Jul 14, 2009 5:51 PM by Norman Richards

    FacesMessages.addFromResourceBundle - deprecated

    Chris Simons Expert

      I want to use FacesMessage.SERVERITY_ to set the marker info on all of our FacesMessages.


      But .addFromResourceBundle(Severity, ...) is showing that it is deprecated in favor of:


      .addFromResourceBundle(String, ...).


      Is there a reason for this or am I using an out-dated jar?


      Running Seam 2.1.2.GA and IDEA 8.1.3.


      Thanks.

        • 1. Re: FacesMessages.addFromResourceBundle - deprecated
          Norman Richards Expert

          This is what I see as the suggested replacement:


            /**
              * Add a status message, looking up the message in the resource bundle
              * using the provided key.
              * 
              * You can also specify the severity, and parameters to be interpolated
              * 
              * Deprecated, use {@link #addFromResourceBundle(org.jboss.seam.international.StatusMessage.Severity, String, Object...)}
              * instead
              */