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

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

public abstract class LoadBundleTag
extends javax.servlet.jsp.tagext.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 session attributes (session scope is needed to support ajax requests).

The main difference to the JSF tag f:localBundle is the support of Tobago themes and the XML formal for properties files.

Since JSF 1.2 it is possible to use a TobagoBundle and configure it in the faces-config.xml.

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()
           
abstract  String getBasenameValue()
          Base name of the resource bundle to be loaded.
abstract  String getVarValue()
          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, 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

getBasenameValue

public abstract String getBasenameValue()
Base name of the resource bundle to be loaded.


getVarValue

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


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 © 2002-2013 The Apache Software Foundation. All Rights Reserved.