Name
UIComponent and UIComponentBase
Synopsis
The UIComponent
class is an abstract
class that defines all methods
shared by all JSF components. The UIComponentBase
class is a concrete subclass of UIComponent
that
provides default implementations for all methods.
It’s used as the base class for all other JSF
standard component classes and can also be used as the base class for
custom classes.
Synopsis
Class name: |
javax.faces.component.UIComponent |
Extends: |
None |
Implements: |
javax.faces.component.StateHolder |
Class name: |
javax.faces.component.UIComponentBase |
Extends: |
javax.faces.component.UIComponent |
Implements: |
javax.faces.component.StateHolder |
Constructor
-
public UIComponentBase()
Creates a new
UIComponentBase
instance.
Methods
-
protected void addFacesListener(javax.faces.event.FacesListener l)
Adds the
FacesListener
subclass to the list of listeners for theFacesEvent
subclasses this component fires. This method is used by all subclasses to register specific event listeners.-
public boolean broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
Invokes all registered event listeners for the specific
FacesEvent
subclass in the order they were registered.-
public void decode(javax.faces.context.FacesContext context)
Reads the submitted value for the component from the request information available through the
FacesContext
.-
public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException
If the rendered property ...
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.