com.sun.rave.faces.component
Class EncodingComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by com.sun.rave.faces.component.EncodingComponent
All Implemented Interfaces:
javax.faces.component.StateHolder
Direct Known Subclasses:
EncodingComponent

public class EncodingComponent
extends javax.faces.component.UIComponentBase

JavaServer Faces component that enables an application to dynamically adjust the character encoding of a response, based on the current view's Locale setting.


Field Summary
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
EncodingComponent()
          Create a new EncodingComponent with default properties.
 
Method Summary
 java.lang.String getFamily()
          Return the component family to which this component belongs.
 java.lang.String getValue()
          Return the character encoding value to be used for this response.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
          Restore the state of this component from the specified object.
 java.lang.Object saveState(javax.faces.context.FacesContext context)
          Return an object representing the saved state of this component.
 void setValue(java.lang.String value)
          Set the character encoding value to use for this response.
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodingComponent

public EncodingComponent()

Create a new EncodingComponent with default properties.

Method Detail

getFamily

public java.lang.String getFamily()

Return the component family to which this component belongs.

Specified by:
getFamily in class javax.faces.component.UIComponent

getValue

public java.lang.String getValue()

Return the character encoding value to be used for this response.


setValue

public void setValue(java.lang.String value)

Set the character encoding value to use for this response.

Parameters:
value - New character encoding value

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)

Restore the state of this component from the specified object.

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase
Parameters:
context - FacesContext for the current request
state - State object from which to restore our state

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)

Return an object representing the saved state of this component.

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase
Parameters:
context - FacesContext for the current request