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/02/25 12:54:27 UTC

svn commit: r380922 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlDataList.java

Author: mmarinschek
Date: Sat Feb 25 03:54:25 2006
New Revision: 380922

URL: http://svn.apache.org/viewcvs?rev=380922&view=rev
Log:
added overriden processUpdates and processValidators

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlDataList.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlDataList.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlDataList.java?rev=380922&r1=380921&r2=380922&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlDataList.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/datalist/HtmlDataList.java Sat Feb 25 03:54:25 2006
@@ -57,6 +57,29 @@
         setRowIndex(-1);
     }
 
+    public void processUpdates(FacesContext context)
+    {
+        if (context == null)
+            throw new NullPointerException("context");
+        if (!isRendered())
+            return;
+
+        setRowIndex(-1);
+        processChildren(context, PROCESS_UPDATES);
+        setRowIndex(-1);
+    }
+
+    public void processValidators(FacesContext context)
+    {
+        if (context == null)
+            throw new NullPointerException("context");
+        if (!isRendered())
+            return;
+
+        setRowIndex(-1);
+        processChildren(context, PROCESS_VALIDATORS);
+        setRowIndex(-1);    }
+
     /**
      * Iterates over all children, processes each according to the specified 
      * process action if the child is rendered.
@@ -434,7 +457,7 @@
         values[14] = _style;
         values[15] = _styleClass;
         values[16] = _title;
-        return ((Object) (values));
+        return values;
     }
 
     public void restoreState(FacesContext context, Object state)