<o:loadBundle>
taghandler basically extends the standard <f:loadBundle>
with a new loader
attribute allowing you to explicitly set the desired {@link ClassLoader} where
the resource bundle should be looked up. Also the {@link Locale} of the bundle is obtained with better default values
than the default Faces implementation.
You can use the loader
attribute to specify an object whose class loader will be used to load the
resource bundle specified in the basename
attribute. The class loader of the given object is resolved as
specified in {@link Utils#getClassLoader(Object)}. In the end this should allow you to use a more specific resource
bundle when there are duplicate instances in the runtime classpath, e.g. via multiple (plugin) libraries.
The locale of the resource bundle is obtained as specified in {@link Faces#getLocale()}.
You can use it the same way as <f:loadBundle>
, you only need to change f:
into
o:
to get the extra support for loader
attribute and the improved locale resolving.
Name | Required | Type | Description |
---|---|---|---|
basename | true | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
| Base name of the resource bundle to be loaded. |
loader | false | jakarta.el.ValueExpression
(must evaluate to java.lang.Object )
|
The object to be used as source of the class loader to load the resource bundle specified in basename attribute.
Can be an instance of ClassLoader , Class or any object.
|
var | true | java.lang.String | The name of the request attribute which exposes the loaded resource bundle in the request scope. |
Output generated by Vdldoc View Declaration Language Documentation Generator.