You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/03/22 10:36:09 UTC
svn commit: r521171 -
/myfaces/core/branches/jsf12/api/src/main/java-templates/javax/faces/component/UIDataTemplate.java
Author: matzew
Date: Thu Mar 22 02:36:08 2007
New Revision: 521171
URL: http://svn.apache.org/viewvc?view=rev&rev=521171
Log:
MYFACES-1572 - getFirst() and getRows() methods in UIData don't return correct values
changed UIDataTemplate.java for getting the right values.
Modified:
myfaces/core/branches/jsf12/api/src/main/java-templates/javax/faces/component/UIDataTemplate.java
Modified: myfaces/core/branches/jsf12/api/src/main/java-templates/javax/faces/component/UIDataTemplate.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/api/src/main/java-templates/javax/faces/component/UIDataTemplate.java?view=diff&rev=521171&r1=521170&r2=521171
==============================================================================
--- myfaces/core/branches/jsf12/api/src/main/java-templates/javax/faces/component/UIDataTemplate.java (original)
+++ myfaces/core/branches/jsf12/api/src/main/java-templates/javax/faces/component/UIDataTemplate.java Thu Mar 22 02:36:08 2007
@@ -137,6 +137,8 @@
/**/private int _rows;
/**/private int _first;
/**/private Object _value;
+ /**/private boolean _firstSet;
+ /**/private boolean _rowsSet;
private int _rowIndex = -1;
@@ -250,6 +252,7 @@
}
_rowIndex = rowIndex;
+ _rowsSet=true;
DataModel dataModel = getDataModel();
dataModel.setRowIndex(rowIndex);
@@ -897,6 +900,7 @@
throw new IllegalArgumentException("Illegal value for first row: " + first);
}
_first = first;
+ _firstSet=true;
}
private static final DataModel EMPTY_DATA_MODEL = new DataModel()