Class UIComponentBase

java.lang.Object
jakarta.faces.component.UIComponent
jakarta.faces.component.UIComponentBase
All Implemented Interfaces:
PartialStateHolder, StateHolder, TransientStateHolder, ComponentSystemEventListener, FacesListener, SystemEventListenerHolder, EventListener
Direct Known Subclasses:
ComponentRef, UIColumn, UICommand, UIData, UIDebug, UIForm, UIGraphic, UIImportConstants, UILeaf, UIMessage, UIMessages, UINamingContainer, UIOutput, UIPanel, UIParameter, UISelectItem, UISelectItems, UIViewAction, UIViewRoot, UIWebsocket

public abstract class UIComponentBase extends UIComponent

UIComponentBase is a convenience base class that implements the default concrete behavior of all methods defined by UIComponent.

By default, this class defines getRendersChildren() to find the renderer for this component and call its getRendersChildren() method. The default implementation on the Renderer returns false. As of version 1.2 of the Jakarta Faces Specification, component authors are encouraged to return true from this method and rely on the implementation of encodeChildren(jakarta.faces.context.FacesContext) in this class and in the Renderer (Renderer.encodeChildren(jakarta.faces.context.FacesContext, T)). Subclasses that wish to manage the rendering of their children should override this method to return true instead.