You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2006/10/24 14:05:50 UTC

svn commit: r467317 - in /myfaces: core/trunk/api/src/main/java/javax/faces/component/UIData.java tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java

Author: mmarinschek
Date: Tue Oct 24 05:05:49 2006
New Revision: 467317

URL: http://svn.apache.org/viewvc?view=rev&rev=467317
Log:
cosmetic change - error message changed.

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java?view=diff&rev=467317&r1=467316&r2=467317
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/UIData.java Tue Oct 24 05:05:49 2006
@@ -453,7 +453,8 @@
         }
         else if (name.equals("var") || name.equals("rowIndex"))
         {
-            throw new IllegalArgumentException("name " + name);
+            throw new IllegalArgumentException(
+                    "You can never set the 'rowIndex' or the 'var' attribute as a value-binding. Set the property directly instead. Name " + name);
         }
         super.setValueBinding(name, binding);
     }

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java?view=diff&rev=467317&r1=467316&r2=467317
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/component/html/ext/HtmlDataTableHack.java Tue Oct 24 05:05:49 2006
@@ -378,7 +378,8 @@
         }
         else if (name.equals("var") || name.equals("rowIndex"))
         {
-            throw new IllegalArgumentException("name " + name);
+            throw new IllegalArgumentException(
+                    "You can never set the 'rowIndex' or the 'var' attribute as a value-binding. Set the property directly instead. Name " + name);
         }
         super.setValueBinding(name, binding);
     }