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

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

I also don't see a valid case for that, but maybe there is one.

Besides that: Shouldn't we also check the remove() method of the HashMap in 
ViewScope to invoke the @PreDestroy method of a managed bean that is removed by 
this method, but not with clear()? Then we would also need FacesContext and 
UIViewRoot.
Every other scope listenes on removing of specified objects as well as 
destroying the whole scope (look at MyFacesSessonAttributeListener for 
example). 

> 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