myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary VanMatre (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Updated] (TRINIDAD-2072) Stale reference of the collection model by the RowKeySet
Date Fri, 25 Mar 2011 21:11:06 GMT

     [ https://issues.apache.org/jira/browse/TRINIDAD-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary VanMatre updated TRINIDAD-2072:
------------------------------------

    Status: Patch Available  (was: Open)

> Stale reference of the collection model by the RowKeySet  
> ----------------------------------------------------------
>
>                 Key: TRINIDAD-2072
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2072
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 2.0.0-beta-2
>         Environment: n/a
>            Reporter: Gary VanMatre
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message