Name

UIData

Synopsis

This class represents a component that iterates through tabular data, letting its javax.faces.component.UIColumn component children process the data for each row. It can be equipped with header and footer facets. The default rendererType is javax.faces.Table.

Class name:

javax.faces.component.UIData

Extends:

javax.faces.component.UIComponentBase

Implements:

javax.faces.component.NamingContainer, javax.faces.component.StateHolder

Fields

public static String COMPONENT_FAMILY

The component family: javax.faces.Data.

public static String COMPONENT_TYPE

The component family: javax.faces.Data.

Constructor

public UIData()

Creates a new instance.

Methods

public boolean broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException

Unwraps the event, calls setRowIndex() with the index embedded in the wrapped event, and delegates the unwrapped event broadcasting to the real source component. See also queueEvent().

public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException

Before delegating to the superclass, resets the cached child component per-row values unless an error message is queued for one of them.

public String getClientId(javax.faces.context.FacesContext context)

Returns a client ID that includes the current value of the rowIndex property, unless it’s -1. This ensures that the child components get a unique client ID per row.

public String getFamily()

Returns the component family ID.

public ...

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.