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

Stale reference of the collection model by the RowKeySet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-2
    • 2.0.0-core
    • None
    • None
    • n/a

    Description

      UIXCollection caches a reference to the collectionModel as internal state. This cache is cleared by many of the lifecycle operations that act on the component (processDecodes, invokeOnComponent, visit tree, encoding). The RowKeySet components properties are populated with the current collection model. It is possible for these component properties to be acted on before the component is processed by the lifecycle. A component rendered prior to the "table" could get a stale model accessing the selectedRowKeys before encoding of the table.

      The proposed fix is to always flush the internal cache for property getters that needs the very latest reference to the collection model.

      Attachments

        1. trunk.patch
          5 kB
          Gary VanMatre
        2. 1.2.12.5.0-branch.patch
          5 kB
          Gary VanMatre

        Activity

          People

            darkarena Scott O'Bryan
            gvanmatre@comcast.net Gary VanMatre
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: