Re: CODI scoped beans @PreDestroy not running after redirect

2012-09-07 Thread oversteer
Gerhard, thanks for the quick response. I tried windowContext#close() and it works fine. I dug up this jira http://java.net/jira/browse/JAVASERVERFACES-1351 and it looks just like you said with viewscoped, so this is a limitation worth knowing about. Gerhard Petracek wrote: > > hi brendan, >

Re: CODI scoped beans @PreDestroy not running after redirect

2012-09-07 Thread Gerhard Petracek
hi brendan, in case of @javax.faces.bean.ViewScoped it looks like javax.faces.event.PreDestroyViewMapEvent doesn't get fired. in case of @ViewAccessScoped it's just not possible by definition to do it autom. (before the session expires) if you redirect to an external page, but you can use WindowCo

CODI scoped beans @PreDestroy not running after redirect

2012-09-07 Thread oversteer
I have a simple page with a backing bean which redirects (FacesContext.getCurrentInstance().getExternalContext().redirect(target)) to an external website when a commandButton is pushed. I notice that when using @ViewAccessScoped or @javax.faces.bean.ViewScoped the predestroy method only runs at