|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.fmt.BundleTag
public class 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, parent |
| Constructor Summary | |
|---|---|
BundleTag()
|
|
| Method Summary | |
|---|---|
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. |
| 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(XMLOutput output)
throws JellyTagException
JellyTagExceptionpublic static LocalizationContext getLocalizationContext(JellyContext jc)
jc - Page in which to look up the default I18N localization context
public 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 name
public void setBasename(Expression basename)
basename - New value of property basename.public void setPrefix(Expression prefix)
prefix - New value of property prefix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||