hi pieter,

first of all welcome @ myfaces!
as long as the bean is referenced by a page - the bean will be available for
the next page. after rendering the first page which doesn't use the
view-access scoped bean it will be destroyed (that's independent of other
beans).

regards,
gerhard

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


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