if (param != null) {
UIDatascroller scroller = (UIDatascroller) component;
int newPage = scroller.getPageForFacet(param);
int page = scroller.getPage();
if (newPage != 0 && newPage != page) {
DataScrollerEvent event = new DataScrollerEvent(scroller,
String.valueOf(page), param, newPage);
if (scroller.isImmediate()) {
event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
} else {
event.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
event.queue();
}
new AjaxEvent(component).queue();
}
}