Class BaseComponent

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

public class BaseComponent extends UIOutput

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

  • Constructor Details

    • BaseComponent

      public BaseComponent()

      Create a new BaseComponent with default properties.

  • Method Details

    • getFamily

      public String getFamily()

      Return the component family to which this component belongs.

      Overrides:
      getFamily in class UIOutput
    • getTarget

      public String getTarget()

      Return the target frame.

    • setTarget

      public void setTarget(String target)

      Set the target frame.

      Parameters:
      target - The new target frame
    • 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