shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig McClanahan (JIRA)" <>
Subject [jira] Created: (SHALE-269) Convenient programmatic access to localized messages
Date Thu, 31 Aug 2006 21:16:31 GMT
Convenient programmatic access to localized messages

                 Key: SHALE-269
             Project: Shale
          Issue Type: New Feature
          Components: Core
    Affects Versions: 1.0.3
            Reporter: Craig McClanahan
            Priority: Minor

>From the Shale User Mailing List (Adrian Mitev 	<>):


Hi! It is a good idea to add method like addMessageFromBundle that
does something like this:

public void addMessageFromBundle(UIComponent component,String
bundleMessageKey) {
       ResourceBundle bundle = null;
       try {
           bundle = ResourceBundle.getBundle(getFacesContext()
           String message = bundle.getString(bundleMessageKey);
       } catch (MissingResourceException e) {


We might also look at ways to provide for parameter replacement in such messages.

Seam also has a cute utility that lets you build messages out of EL expressions for parameter

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message