Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2158

NodeIterator iterates the colection more no of times than the size of the collection.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1-core
    • 2.0.1-core
    • Components
    • None

    Description

      The class org.apache.myfaces.trinidad.model.RowKeySetTreeImpl contains two Iterator Implementations PathIterator and NodeIterator.
      When the NodeIterator is used interanally to iterate the selected Tree or TreeTable nodes(rows), the iterator iterates more no of times than the total number of the slected nodes(rows). The iterator.next() returns the same node(row) more than once.

      This issue occurs because of the follwoing 2 reasons.
      1) The currentIterator instance is not updated by taking the next iterator from the iteratorStack when one node completeley iterator.
      2) Even when a node doesn't have any child nodes, iterator instances are created and pushed to the iteratorStack.

      Attachments

        1. trunk.patch
          2 kB
          Paresh Kumar Acharya
        2. trunk.patch
          2 kB
          Paresh Kumar Acharya
        3. Bug13355971.patch
          2 kB
          Paresh Kumar Acharya

        Activity

          People

            arobinson74 Andrew Robinson
            pareshacharya Paresh Kumar Acharya
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: