org.apache.myfaces.taglib.core
Class LoadBundleTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.myfaces.taglib.core.LoadBundleTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
@JSFJspTag(name="f:loadBundle",
bodyContent="empty")
public class LoadBundleTag
- extends javax.servlet.jsp.tagext.TagSupport
Loads a resource bundle and saves it as a variable in the request scope.
Unless otherwise specified, all attributes accept static values or EL expressions.
TODO: We should find a way to save loaded bundles in the state, because otherwise on the next request the bundle map
will not be present before the render phase and value bindings that reference to the bundle will always log annoying
"Variable 'xxx' could not be resolved" error messages.
- Version:
- $Revision: 933820 $ $Date: 2010-04-13 19:13:25 -0500 (Tue, 13 Apr 2010) $
- Author:
- Manfred Geiler (latest modification by $Author: lu4242 $)
- See Also:
- Serialized Form
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 |
Method Summary |
int |
doStartTag()
|
void |
setBasename(javax.el.ValueExpression basename)
The base name of the resource bundle. |
void |
setVar(String var)
The name of the variable in request scope that the resources are saved to. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, 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 |
LoadBundleTag
public LoadBundleTag()
setBasename
@JSFJspAttribute(className="javax.el.ValueExpression",
deferredValueType="java.lang.String")
public void setBasename(javax.el.ValueExpression basename)
- The base name of the resource bundle.
setVar
@JSFJspAttribute(required=true)
public void setVar(String var)
- The name of the variable in request scope that the resources are saved to. This must be a static value.
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.