Hi Pieter,

the behavior which you describe is provided by ViewScope. If you navigate to
a different view the old bean is destroyed.

Regards
Marcus

2011/6/23 Pieter Martin <[email protected]>

> Hi,
>
> I trying to use @ViewAccessScoped beans but am not getting the expected
> behavior.
>
> I notice that @PreDestroy only gets called when I navigate from a page
> using a particular ViewAccessScoped bean to another page using a
> different ViewAccessScoped bean.
>
> I expected @PreDestroy to be called whenever I navigate to a different
> view. i.e. if a navigate from a page with a ViewAccessScoped bean to a
> page with a ApplicationScoped or WindowScoped backing bean @PreDestroy
> does not get called.
>
> Is this a bug?
>
> I am using CODI version 0.9.5 and MYFACES 2.1.1
>
> Thanks
> Pieter
>
>

Reply via email to