[ 
https://issues.apache.org/jira/browse/MYFACES-3806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13855873#comment-13855873
 ] 

Leonardo Uribe commented on MYFACES-3806:
-----------------------------------------

I think we should not forget this one to include it before 2.2.0 release. It 
doesn't have sense to discard a view from session and do not destroy the view 
scope at the same time. In 2.1.x, when the view is discarded the view scope is 
discarded too. It can be done easily just keeping track of the viewScopeIds and 
using ViewScopeProvider to destroy the selected view scope

> Destroy ViewScope beans when view is discarded from view state.
> ---------------------------------------------------------------
>
>                 Key: MYFACES-3806
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3806
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-344
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.2.0
>
>
> According to JSF 2.2 spec, view scope beans are destroyed when the session is 
> destroyed, but it could be better if we destroy the beans when the associated 
> view is discarded by server side state saving algorithm. We probably need to 
> duplicate the view map key but it is ok to do so in this case, because a view 
> scope bean can increate session size faster than the additional view map key.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to