if (isRenderedOnSinglePage(scroller, scroller.getDataTable())) {
String param = (String) getParamMap(context).get(
component.getClientId(context));
if (param != null) {
DataScrollerEvent event = new DataScrollerEvent(scroller,
String.valueOf(scroller.getPageIndex()), param);
if (scroller.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
component.queueEvent(event);
}
}