h:datalist don�t call setRowIndex(-1) in decode phase
-----------------------------------------------------

         Key: MYFACES-138
         URL: http://issues.apache.org/jira/browse/MYFACES-138
     Project: MyFaces
        Type: Bug
    Versions: Nightly Build    
    Reporter: Mathias Broekelmann


At least HtmlDataList.setRowIndex(-1) should called at end of method 
processDecodes(FacesContext) to reset the component state as documented in 
setRowIndex(int). UIData.processDecodes(FacesContext) calls setRowIndex(-1) 
before looping the rows too. As I don�t know why UIData is doing that it seems 
to be that HtmlDataList works without it.

Here comes the patch:

Index: HtmlDataList.java
===================================================================
RCS file: 
/home/cvspublic/incubator-myfaces/src/components/org/apache/myfaces/custom/datalist/HtmlDataList.java,v
retrieving revision 1.5
diff -u -r1.5 HtmlDataList.java
--- HtmlDataList.java   13 Oct 2004 11:50:57 -0000      1.5
+++ HtmlDataList.java   21 Mar 2005 10:59:12 -0000
@@ -59,6 +59,7 @@
                 }
             }
         }
+        setRowIndex(-1);
     }
 
 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to