// getItemLabel from selectItem in the facet if it exists.
if ((rangeLabel != null) &&
((rangeLabel instanceof UISelectItem) ||
(rangeLabel instanceof UIXSelectItem)))
{
Range range = new Range();
// getting data is zero-indexed, whereas start is 1-indexed.
setRowIndex(component, (int)start-1);
Object startRow = getRowData(component);
range.setStart(startRow);
// get end row. If the end row doesn't exist, find the
// last row that does exist. The row indices are zero-indexed.
int endIndex = (int)(start + currVisible - 2);
endIndex = _setToExistingEndRow(component, (int)start -1, endIndex);
setRowIndex(component, endIndex);
// ok, we are sure we have an existing end row set, so set the end
// parameter on the range object.
range.setEnd(getRowData(component));
Object old = null;
String var = getVar(component, getFacesBean(component));
if (var != null)
{