Class Hierarchy All Classes All Fields and Methods

 

Class com.ibm.faces.renderkit.html_extended.RowSelectRenderer

java.lang.Object
        javax.faces.render.Renderer
                com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
                        com.ibm.faces.renderkit.html_extended.AbstractRowRenderer
                                com.ibm.faces.renderkit.html_extended.RowSelectRenderer

public class RowSelectRenderer
extends AbstractRowRenderer

Renderer for providing row select support in a data table.

This component should be used as a row-level child of a javax.faces.component.UIData component.

Supported Value Types: Boolean; Boolean[]; boolean[]; int[]; Integer[]; java.util.Collection( java.util.Map )

 

Boolean

A boolean value in a row-level bean. The boolean is evaluated like any other row property. Other data types are treated as global to the table. This is the most efficient data type.

 

Boolean[]/boolean[]

Boolean arrays. Rows are evaluated with respect to the array index at UIData.getRowIndex(). The range available must start at index UIData.getFirst() and be of length UIData.getFirst()+UIData.getRows(). The recommended array size is therefore UIData.getRowCount().

 

Integer[]/int[]

Integer arrays. The values in the array indicate selected row indices. On encode, if the current row UIData.getRowIndex() is a member of the array, the control is rendered selected. On decode, if the current row is selected and is not a member of the array, it is appended to the array. On decode, if the current row is unselected and is a member of the array, the first instance in the array is removed. The recommended initial array size is zero for all rows unselected. The array will be replaced with new instances as selection changes.

 

java.util.Collection

A Collection of Maps. This data type must be used with UIParameter children. The UIParameters should resolve values from row-level beans.

For each row, a Map is created entering a key/value pair for each UIParameter child. Key=UIParameter.getName(); Value=UIParameter.getValue().

On encode, if the Collection contains the current Map, the row is rendered selected. On decode, if the row is selected and the Collection does not contain the Map, the Map is added to the Collection. On decode, if the row is unselected and the Collection contains the Map, the Map is removed from the Collection.

Constructor Index
Constructor Description
RowSelectRenderer()  

Method Index
Method Description
void decode(FacesContext, UIComponent)  
void encodeBegin(FacesContext, UIComponent)  
void encodeEnd(FacesContext, UIComponent)  

 

Constructors

 

RowSelectRenderer

public RowSelectRenderer() 

 

Methods

 

decode

public void decode(FacesContext context,
                   UIComponent component) 

 

encodeBegin

public void encodeBegin(FacesContext context,
                        UIComponent component) throws IOException

 

encodeEnd

public void encodeEnd(FacesContext context,
                      UIComponent component) throws IOException

Class Hierarchy All Classes All Fields and Methods