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.


What do you think?

~ Simon

Reply via email to