On 8/31/06, Adrian Mitev <[EMAIL PROTECTED]> wrote:
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()
                    .getApplication().getMessageBundle());
            String message = bundle.getString(bundleMessageKey);

            error(componeng,message);

--- compile error ;)


        } catch (MissingResourceException e) {
            e.printStackTrace();
        }
    }

--
Seeing is believing



--
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to