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:
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()
           
 String getBasename()
           
 String getVar()
           
 void release()
           
 void setBasename(String basename)
          Base name of the resource bundle to be loaded.
 void setVar(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 String getBasename()

setBasename

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


getVar

public String getVar()

setVar

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



Copyright © 2002-2008 Apache Software Foundation. All Rights Reserved.