public class JSFUtil { [...] public String getResourceValue(String key,String parameters[]){ FacesContext context = FacesContext.getCurrentInstance(); ResourceBundle rb =context.getApplication().getResourceBundle(context,"resource_bundle_name"); String value = rb.getValue("key") return MessageFormat.format(value,parameters); } }
Post a Comment
No comments:
Post a Comment