Author: ilya_shaikovsky
Date: 2009-07-06 07:53:11 -0400 (Mon, 06 Jul 2009)
New Revision: 14785
Modified:
branches/community/3.3.X/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/examples/customScroller.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-7163
Modified:
branches/community/3.3.X/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2009-07-06
11:43:36 UTC (rev 14784)
+++
branches/community/3.3.X/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2009-07-06
11:53:11 UTC (rev 14785)
@@ -138,8 +138,6 @@
for (int i = 1; i <= allCars.size() / getRows()+1; i++) {
if (Math.abs(i - scrollerPage) < 5) {
SelectItem item = new SelectItem(i);
- if (scrollerPage == i)
- item.setDisabled(true);
list.add(item);
}
}
Modified:
branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/examples/customScroller.xhtml
===================================================================
---
branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/examples/customScroller.xhtml 2009-07-06
11:43:36 UTC (rev 14784)
+++
branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/examples/customScroller.xhtml 2009-07-06
11:53:11 UTC (rev 14785)
@@ -72,8 +72,8 @@
</f:facet>
<f:facet name="pages">
<h:panelGroup>
- <h:outputText value="Page " />
- <h:selectOneMenu value="#{dataTableScrollerBean.scrollerPage}"
+ <h:outputText value="Page "/>
+ <h:selectOneMenu value="#{dataTableScrollerBean.scrollerPage}"
onchange="#{rich:component('ds')}.switchToPage(this.value)">
<f:selectItems value="#{dataTableScrollerBean.pagesToScroll}" />
</h:selectOneMenu>