Class HtmlComponent

All Implemented Interfaces:
PartialStateHolder, StateHolder, TransientStateHolder, ValueHolder, ComponentSystemEventListener, FacesListener, SystemEventListenerHolder, EventListener

public class HtmlComponent extends UIOutput

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

  • Constructor Details

    • HtmlComponent

      public HtmlComponent()

      Create a new HtmlComponent with default properties.

  • Method Details

    • getFamily

      public String getFamily()

      Return the component family to which this component belongs.

      Overrides:
      getFamily in class UIOutput
    • 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(FacesContext context, Object state)

      Restore the state of this component.

      Specified by:
      restoreState in interface StateHolder
      Overrides:
      restoreState in class UIOutput
      Parameters:
      context - FacesContext for the current request
      state - State object from which to restore our state
    • saveState

      public Object saveState(FacesContext context)

      Save the state of this component.

      Specified by:
      saveState in interface StateHolder
      Overrides:
      saveState in class UIOutput
      Parameters:
      context - FacesContext for the current request