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

Invalid row key in UIXCollection "invokeOnComponent"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.11-core
    • 1.2.12-core
    • Components
    • None
    • All

    Description

      Under certain circumstances, UIXCollection tries to set an invalid row key in the underlying collection model.

      On a PPR postback, the "invokeOnComponent" logic in UIXCollection parses the target clientId string and assumes that the string following the NamingContainer.SEPARATOR_CHAR is a valid client token (with a corresponding row key). The parsed token is then used to set a "current" row key in the collection model before calling "invokeOnComponent" on the children of the UIXCollection.

      If a child component inside a table/column header/footer facet is PPRed, there is no valid token in the clientId and the above logic breaks and tries to set an invalid row key in the collection model.

      Attaching a 1.2.11 patch to fix the issue. The fix checks for a valid row key before calling setRowKey on the underlying model.

      Attachments

        1. uixcollection1.2.11.3.patch
          2 kB
          Kamran Kashanian

        Activity

          People

            Unassigned Unassigned
            kamrankashanian Kamran Kashanian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: