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

Jakob Korherr commented on MYFACES-2399:
----------------------------------------

That's clear, but when we create a ViewScoped managed bean, its @PostConstruct 
method will be called. If we remove it from the viewmap afterwards, its 
@PreDestroy method will never be called, because PreDestroyViewMapEvent invokes 
@PreDestroy only on managed beans, which still exist in the viewmap. Isn't this 
a problem?

> ManagedBeanResolver does not handle view scope
> ----------------------------------------------
>
>                 Key: MYFACES-2399
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2399
>             Project: MyFaces Core
>          Issue Type: Task
>          Components: JSR-314
>    Affects Versions: 2.0.0-alpha
>            Reporter: Jakob Korherr
>         Attachments: view_scope.patch, view_scope_newest.patch
>
>
> Testing the mojarra-example "custom-tag", I ran into the following Exception:
> 06.11.2009 12:29:18 
> org.apache.myfaces.el.unified.resolver.ManagedBeanResolver putInScope
> SCHWERWIEGEND: Managed bean 'data' has illegal scope: view
> The managed bean "data" is annotated with @ViewScoped, but the 
> ManagedBeanResolver does not know this scope.

-- 
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