Author: nbelaevski
Date: 2010-07-06 08:29:02 -0400 (Tue, 06 Jul 2010)
New Revision: 17734
Modified:
root/core/trunk/impl/src/main/java/org/richfaces/component/UISequence.java
Log:
getRelativeRowIndex() method fixed
Modified: root/core/trunk/impl/src/main/java/org/richfaces/component/UISequence.java
===================================================================
--- root/core/trunk/impl/src/main/java/org/richfaces/component/UISequence.java 2010-07-06
10:20:12 UTC (rev 17733)
+++ root/core/trunk/impl/src/main/java/org/richfaces/component/UISequence.java 2010-07-06
12:29:02 UTC (rev 17734)
@@ -274,15 +274,14 @@
}
public int getRelativeRowIndex() {
+ int rowIndex = getRowIndex();
int rows = getRows();
- if(rows == 0) {
- rows = getRowCount();
+
+ if (rows > 0) {
+ return rowIndex % rows;
}
- int rowIndex = getRowIndex();
- rows = (rows == 0) ? rowIndex : (rowIndex % rows);
-
- return (rows);
+ return rowIndex;
}
public String getRelativeClientId(FacesContext facesContext) {
Show replies by date