Tag Name: <a2:i18n />

Description

Get a resource bundle and place it on the value stack

Gets a resource bundle and place it on the value stack. This allows the text tag to access messages from any bundle, and not just the bundle associated with the current action.

Example:

  <a:i18n name="myCustomBundle"> The i18n value for key aaa.bbb.ccc in myCustomBundle is <a:property value="text('aaa.bbb.ccc')" /> </a:i18n>  
  <a:i18n name="some.package.bundle" > <a:text name="some.key" /> </a:i18n>  

Attributes

Name

Required

Default

Type

Description

name true String Object/String Name of ressource bundle to use (eg foo/bar/customBundle)
id false   Object/String id for referencing element. For UI and form tags it will be used as HTML id attribute

Back to Taglib Index