UIXCollection holds onto request scoped value objects
-----------------------------------------------------

                 Key: TRINIDAD-1570
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1570
             Project: MyFaces Trinidad
          Issue Type: Improvement
          Components: Components
    Affects Versions: 1.2.10-sandbox
            Reporter: Venkata Guddanti


When a Collection Component for e.g. a UIXiterator  has a value attribute bound 
to a request scoped bean. This request scoped bean may have  large amount of 
data.  UIXCollection has some state (_state) that holds the _value and the 
CollectionModel (which might be internally holding onto the underlying data). 

Since we are holding onto large amount of data between requests, the 
scalability of the server can get effected.

we should make the ModelUtils change to support WeakReferences.  If for some 
reason we can't do that (because we are using JSF API's for wrapping the data), 
the safe thing is to change the above logic to:

_value is a weak reference

if (model == value), _model is a weakReference, otherwise it is a strong 
reference
This way we will not hold on to 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to