Author: sergeyhalipov
Date: 2007-06-21 12:33:52 -0400 (Thu, 21 Jun 2007)
New Revision: 1263
Modified:
trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java
Log:
http://jira.jboss.com/jira/browse/RF-341
Modified: trunk/richfaces/datascroller/src/main/config/component/datascroller.xml
===================================================================
--- trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-06-21
16:13:34 UTC (rev 1262)
+++ trunk/richfaces/datascroller/src/main/config/component/datascroller.xml 2007-06-21
16:33:52 UTC (rev 1263)
@@ -85,13 +85,6 @@
</property>
<property>
- <name>pageIndex</name>
- <classname>java.lang.String</classname>
- <description>Attribute defines index of initial page when this component is
rendered
- </description>
- </property>
-
- <property>
<name>rendered</name>
<classname>java.lang.String</classname>
<description>If "false", this component is not
rendered</description>
Modified:
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java
===================================================================
---
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java 2007-06-21
16:13:34 UTC (rev 1262)
+++
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java 2007-06-21
16:33:52 UTC (rev 1263)
@@ -307,23 +307,6 @@
}
- /**
- * Sets the page index
- *
- * @param page number
- */
- public void setPageIndex(int page) {
- UIData uiData = getDataTable();
- int rows = getRows(uiData);
- if (0 == rows) {
- throw new FacesException("Missing 'rows' attribute on component
'"
- + uiData.getId() + "'");
- }
- if (page > 0) {
- setFirstRow(page * rows);
- }
- }
-
public int getPageCount(UIData data) {
int rows = getRows(data);
int pageCount;