|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.day.cq.wcm.tags.SetContentBundleTag
public class SetContentBundleTag
SetContentBundleTag implements a custom tag, which sets a
LocalizationContext backed with a ContentResourceBundle.
This allows one to use property names as keys in a JSTL formatting action
and use the value of the property as localized message.
setLanguage(String).
| Field Summary |
|---|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
SetContentBundleTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Sets a default LocalizationContext in Config with a page
scope. |
String |
getLanguage()
|
void |
setLanguage(String language)
|
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetContentBundleTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
LocalizationContext in Config with a page
scope.
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportTag.EVAL_PAGE.
javax.servlet.jsp.JspException - if an error occurs while creating a content backed
resource bundle.public String getLanguage()
null
if the language should be derived from the path of the current resource.public void setLanguage(String language)
language - the language that will be used when a resource bundle is
obtained.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||