Package 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$ $Date$
- Author:
- Manfred Geiler (latest modification by $Author$)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoadBundleTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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 interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
-
-