You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mb...@apache.org on 2005/07/20 10:44:16 UTC
svn commit: r219859 - in /myfaces: api/trunk/src/java/javax/faces/component/
tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/
tomahawk/trunk/src/java/org/apache/myfaces/custom/crosstable/
Author: mbr
Date: Wed Jul 20 01:44:16 2005
New Revision: 219859
URL: http://svn.apache.org/viewcvs?rev=219859&view=rev
Log:
add a IllegalArgumentException if rowindex < -1 (see spec)
Modified:
myfaces/api/trunk/src/java/javax/faces/component/UIData.java
myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java
myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java
myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/crosstable/UIColumns.java
Modified: myfaces/api/trunk/src/java/javax/faces/component/UIData.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/UIData.java?rev=219859&r1=219858&r2=219859&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/UIData.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/UIData.java Wed Jul 20 01:44:16 2005
@@ -117,6 +117,11 @@
public void setRowIndex(int rowIndex)
{
+ if(rowIndex < -1)
+ {
+ throw new IllegalArgumentException("rowIndex is less than -1");
+ }
+
if (_rowIndex == rowIndex)
{
return;
Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java?rev=219859&r1=219858&r2=219859&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java Wed Jul 20 01:44:16 2005
@@ -59,6 +59,11 @@
public void setRowIndex(int rowIndex)
{
+ if(rowIndex < -1)
+ {
+ throw new IllegalArgumentException("rowIndex is less than -1");
+ }
+
String rowIndexVar = getRowIndexVar();
String rowCountVar = getRowCountVar();
String previousRowDataVar = getPreviousRowDataVar();
Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java?rev=219859&r1=219858&r2=219859&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java Wed Jul 20 01:44:16 2005
@@ -133,6 +133,11 @@
public void setRowIndex(int rowIndex)
{
+ if(rowIndex < -1)
+ {
+ throw new IllegalArgumentException("rowIndex is less than -1");
+ }
+
if (_rowIndex == rowIndex)
{
return;
Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/crosstable/UIColumns.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/crosstable/UIColumns.java?rev=219859&r1=219858&r2=219859&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/crosstable/UIColumns.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/crosstable/UIColumns.java Wed Jul 20 01:44:16 2005
@@ -106,6 +106,11 @@
public void setRowIndex(int colIndex)
{
+ if(colIndex < -1)
+ {
+ throw new IllegalArgumentException("colIndex is less than -1");
+ }
+
if (_colIndex == colIndex)
{
return;