You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2008/11/01 19:24:32 UTC

svn commit: r709743 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java

Author: bommel
Date: Sat Nov  1 11:24:32 2008
New Revision: 709743

URL: http://svn.apache.org/viewvc?rev=709743&view=rev
Log:
TOBAGO-715: Constants * moving the attribute constants to class Attributes
Attribute name could not be the same as the method name
this cause an infinite loop on attribute map access

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java?rev=709743&r1=709742&r2=709743&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/Attributes.java Sat Nov  1 11:24:32 2008
@@ -128,7 +128,9 @@
   public static final String SCRIPT_FILES = "scriptFiles";
   public static final String SCROLLBAR_HEIGHT = "scrollbarHeight";
   public static final String SCROLLBARS = "scrollbars";
-  public static final String SCROLL_POSITION = "scrollPosition";
+  // Attribute name could not be the same as the method name
+  // this cause an infinite loop on attribute map
+  public static final String SCROLL_POSITION = "attrScrollPosition";
   public static final String SELECTED_INDEX = "selectedIndex";
   public static final String SELECTED_LIST_STRING = "selectedListString";
   public static final String SORTABLE = "sortable";