org.apache.struts.faces.component
Class HtmlComponent

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIOutput
              extended byorg.apache.struts.faces.component.HtmlComponent
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class HtmlComponent
extends javax.faces.component.UIOutput

Custom component that replaces the Struts <html:html> tag.


Field Summary
private  boolean locale
          Flag indicating we should create a locale.
private  boolean localeSet
           
private  boolean xhtml
          Flag indicating we should render XHTML output.
private  boolean xhtmlSet
           
 
Fields inherited from class javax.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPE
 
Fields inherited from class javax.faces.component.UIComponentBase
 
Constructor Summary
HtmlComponent()
          Create a new HtmlComponent with default properties.
 
Method Summary
 java.lang.String getFamily()
          Return the component family to which this component belongs.
 boolean isLocale()
          Return a flag indicating whether a locale should be created.
 boolean isXhtml()
          Return a flag indicating whether xhtml should be created.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
          Restore the state of this component.
 java.lang.Object saveState(javax.faces.context.FacesContext context)
          Save the state of this component.
 void setLocale(boolean locale)
          Set the flag indicating whether a locale should be created.
 void setXhtml(boolean xhtml)
          Set the flag indicating whether xhtml should be created.
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, 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, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locale

private boolean locale

Flag indicating we should create a locale.


localeSet

private boolean localeSet

xhtml

private boolean xhtml

Flag indicating we should render XHTML output.


xhtmlSet

private boolean xhtmlSet
Constructor Detail

HtmlComponent

public HtmlComponent()

Create a new HtmlComponent with default properties.

Method Detail

getFamily

public java.lang.String getFamily()

Return the component family to which this component belongs.


isLocale

public boolean isLocale()

Return a flag indicating whether a locale should be created.


setLocale

public void setLocale(boolean locale)

Set the flag indicating whether a locale should be created.

Parameters:
locale - The new flag

isXhtml

public boolean isXhtml()

Return a flag indicating whether xhtml should be created.


setXhtml

public void setXhtml(boolean xhtml)

Set the flag indicating whether xhtml should be created.

Parameters:
xhtml - The new flag

restoreState

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

Restore the state of this component.

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)

Save the state of this component.

Parameters:
context - FacesContext for the current request


Copyright ? 2003-2004 - The Apache Software Foundation