org.apache.myfaces.tobago.taglib.component
Class LoadBundleTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.myfaces.tobago.taglib.component.LoadBundleTag
All Implemented Interfaces:
java.io.Serializable, IterationTag, JspTag, Tag

public class LoadBundleTag
extends TagSupport

Load a resource bundle localized for the Locale of the current view from the tobago resource path, and expose it (as a Map) in the request attributes of the current request.

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()
           
 java.lang.String getBasename()
           
 java.lang.String getVar()
           
 void release()
           
 void setBasename(java.lang.String basename)
          Base name of the resource bundle to be loaded.
 void setVar(java.lang.String var)
          Name of a session-scope attribute under which the bundle data will be exposed.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, 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

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Throws:
JspException

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class TagSupport

getBasename

public java.lang.String getBasename()

setBasename

public void setBasename(java.lang.String basename)
Base name of the resource bundle to be loaded.


getVar

public java.lang.String getVar()

setVar

public void setVar(java.lang.String var)
Name of a session-scope attribute under which the bundle data will be exposed.



Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.