org.apache.commons.jelly.tags.fmt
public class BundleTag extends TagSupport
body, context, parent
Constructor and Description |
---|
BundleTag() |
Modifier and Type | Method and Description |
---|---|
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized.
|
LocalizationContext |
getLocalizationContext() |
static LocalizationContext |
getLocalizationContext(JellyContext jc)
Gets the default I18N localization context.
|
static LocalizationContext |
getLocalizationContext(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(Expression basename)
Setter for property basename.
|
void |
setPrefix(Expression prefix)
Setter for property prefix.
|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
public LocalizationContext getLocalizationContext()
public java.lang.String getPrefixAsString()
public void doTag(XMLOutput output) throws JellyTagException
JellyTagException
public static LocalizationContext getLocalizationContext(JellyContext jc)
jc
- Page in which to look up the default I18N localization contextpublic static LocalizationContext getLocalizationContext(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.
pageContext
- Page in which the resource bundle with the
given base name is requestedbasename
- Resource bundle base namepublic void setBasename(Expression basename)
basename
- New value of property basename.public void setPrefix(Expression prefix)
prefix
- New value of property prefix.Copyright © 2014. All Rights Reserved.