org.apache.myfaces.taglib.core
Class LoadBundleTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by 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: 1187700 $ $Date: 2011-10-22 07:19:37 -0500 (Sat, 22 Oct 2011) $
Author:
Manfred Geiler (latest modification by $Author: bommel $)
See Also:
Serialized Form

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
LoadBundleTag()
           
 
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
 

Constructor Detail

LoadBundleTag

public LoadBundleTag()
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 interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.