Includes a java.util.ResourceBundle
in the current page in the form of a basic client-side JavaScript object (also referred to as a client-side resource bundle). The client-side object's properties map to the resource bundle's keys. The resource bundle name is specified using the control's value
attribute.
You can reference the client-side object using the CAF.getBundle(id)
client-side JavaScript method. The id
argument should be the client-side ID of the control. For a control with an id
of myControlId, and a page bean with a name of myPageBean, the following line (in a Script Block control) stores the client-side object in the MY_RESOURCES global variable, and then alerts the resource keyed by the string my-key:
var MY_RESOURCES = CAF.getBundle("#{myPageBean.clientIds['myControlId']}");
alert(MY_RESOURCES["my-key"]);
Info | Value |
---|---|
Component Type | com.webmethods.caf.faces.output.IncludeResourceBundle |
Handler Class | None |
Renderer Type | com.webmethods.caf.faces.output.IncludeResourceBundle |
Description | Include resource bundle as a client-side object |
Palette Location | CAF Html/Control/Output/Include Resource Bundle |
Name | Required | Type | Description |
---|---|---|---|
converter | false | javax.el.ValueExpression
(must evaluate to javax.faces.convert.Converter )
| A value binding expression for a method that returns a converter instance. |
converterMessage | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Will be used as the text of the converter message, replacing any message that comes from the converter. |
id | false | java.lang.String | Control identifier |
label | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| A localized user presentable name for this component. |
rendered | false | javax.el.ValueExpression
(must evaluate to boolean )
|
True to render control; false to ignore it
If not specified, the default value is "true". |
value | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| Control value |
Output generated by Vdldoc View Declaration Language Documentation Generator.