On Sun, Sep 28, 2008 at 7:35 PM, Simon Lessard
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> As of JSF 2.0, it's possible to have a ResourceBundle associated to an
> UIComponent. This is reflected in the API with the method:
>
> public Map<String, String> getResourceBundleMap()
>
> However, this method, as you can see returns a Map<String, String> and not a
> ResourceBundle directly. So, if my count is correct, JSF now have 3 use case
> of a special Map implementation that wraps a ResourceBundle
> (<f:loadBundle/>, configured application bundles and component bundles). The
> first two were not much of an issue as thoe are in the IMPL project. However
> the new one ought to be in the API since the UIComponent method is not
> abstract or anything. So what should we do about that wrapping class? I see
> two decent options:
>
> 1. Copy the class everywhere (not really nice though)
> 2. Ask commons-collection team to add the BundleMap to their API have have a
> dependency to it.

I am fine with the second option.

-Matthias

>
>
> What do you think?
>
> ~ Simon
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Reply via email to