|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.fmt.BundleTag
Support for tag handlers for <bundle>, the resource bundle loading tag in JSTL.
Field Summary |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
BundleTag()
|
Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
LocalizationContext |
getLocalizationContext()
|
static LocalizationContext |
getLocalizationContext(org.apache.commons.jelly.JellyContext jc)
Gets the default I18N localization context. |
static LocalizationContext |
getLocalizationContext(org.apache.commons.jelly.JellyContext jc,
java.lang.String basename)
Gets the resource bundle with the given base name, whose locale is determined as follows: Check if a match exists between the ordered set of preferred locales and the available locales, for the given base name. |
java.lang.String |
getPrefixAsString()
|
void |
setBasename(org.apache.commons.jelly.expression.Expression basename)
Setter for property basename. |
void |
setPrefix(org.apache.commons.jelly.expression.Expression prefix)
Setter for property prefix. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BundleTag()
Method Detail |
public LocalizationContext getLocalizationContext()
public java.lang.String getPrefixAsString()
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
public static LocalizationContext getLocalizationContext(org.apache.commons.jelly.JellyContext jc)
jc
- Page in which to look up the default I18N localization contextpublic static LocalizationContext getLocalizationContext(org.apache.commons.jelly.JellyContext jc, java.lang.String basename)
If no match was found in the previous step, check if a match exists between the fallback locale (given by the org.apache.commons.jelly.tags.fmt.fallbackLocale configuration setting) and the available locales, for the given base name.
basename
- Resource bundle base name
public void setBasename(org.apache.commons.jelly.expression.Expression basename)
basename
- New value of property basename.public void setPrefix(org.apache.commons.jelly.expression.Expression prefix)
prefix
- New value of property prefix.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |