org.apache.shale.clay.component
Class LoadBundle

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.shale.clay.component.LoadBundle
All Implemented Interfaces:
javax.faces.component.StateHolder

public class LoadBundle
extends javax.faces.component.UIComponentBase

Component counterpart of the standard loadBundle tag. Since it's a component it can be used with HTML templates.


Constructor Summary
LoadBundle()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context)
          Invokes rendering of the component.
 String getFamily()
           
 void setBasename(String basename)
          Sets the base name of the resource bundle to be loaded.
 void setVar(String var)
          Sets the name of a request scope attribute under which the resource bundle will be exposed as a Map.
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadBundle

public LoadBundle()
Method Detail

getFamily

public String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent
Returns:
component family, null

setBasename

public void setBasename(String basename)

Sets the base name of the resource bundle to be loaded.

Parameters:
basename - resource bundle name

setVar

public void setVar(String var)

Sets the name of a request scope attribute under which the resource bundle will be exposed as a Map.

Parameters:
var - session scoped attribute

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context)
                 throws IOException

Invokes rendering of the component.

Overrides:
encodeBegin in class javax.faces.component.UIComponentBase
Parameters:
context - faces context
Throws:
IOException - response writer


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.