Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-174

UIData.isAllChildrenAndFacetsValid() resets the rowindex to -1. x:columns component not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.0.9m9
    • None
    • None

    Description

      UIData.isAllChildrenAndFacetsValid() resets the rowindex to -1 which prevents x:columns component to work right. The example application for the crosstable doesn´t work when a new column is added or the values are modified.

      Here is a fix which will set the rowindex to it´s previous value:

      Index: UIData.java
      ===================================================================
      RCS file: /home/cvspublic/incubator-myfaces/src/jsfapi/javax/faces/component/UIData.java,v
      retrieving revision 1.30
      diff -u -r1.30 UIData.java
      — UIData.java 24 Mar 2005 16:46:02 -0000 1.30
      +++ UIData.java 7 Apr 2005 09:47:28 -0000
      @@ -627,6 +627,7 @@

      { last = first + rows; }

      + int setRowIndex = getRowIndex();
      try

      { for (int rowIndex = first; rowIndex < last; rowIndex++) @@ -643,7 +644,7 @@ }

      finally

      { - setRowIndex(-1); + setRowIndex(setRowIndex); }

      return true;
      }

      Attachments

        Activity

          People

            matzew Matthias Wessendorf
            mbroekelmann Mathias Broekelmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: