The Common-Controls Tag Library
[
Syntax
|
Attributes
|
Example
]
<util:resource>
Translates the given resource key
Tag class:
ResourceTag
[ Syntax ]
Standard Syntax
<util:resource
key
= "String"
[
filter
= "boolean" ]
[
locale
= "String" ]
/>
[ Attributes ]
Attribute
Type
Description
Req.
RTExp
filter
boolean
This flag specifies whether an HTML-conversion should be carried out.
key
String
The resource key to translate
locale
String
enables localization for the control element. String literals will be interpreted as keys in the
Application.properties
file.
Annotation
: boolean value
true
oder
false
oder the name of a locale.
[ Example ]
Translates the resource key
fw.tooltip.create.item
based on the users locale
<%@
taglib
uri
=
"http://www.common-controls.com/cc/tags-util"
prefix
=
"util"
%>
<
util:resource
key
=
"fw.tooltip.create.item"
/>