Faça algo do tipo:
public static String getResourceString(String key) {
FacesContext context = FacesContext.getCurrentInstance();
Locale locale = context.getViewRoot().getLocale();
try {
ResourceBundle bundle = ResourceBundle.getBundle(context
.getApplication().getMessageBundle(), locale);
return bundle.getString(key);
} catch (MissingResourceException e) {
return key;
}
}
--
Diénert de Alencar Vieira
Sun Certified Java Programmer - SCJP 6
Graduado em Sistemas para Internet - IFPB
Bacharelando em Ciência da Computação - UFPB