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,
>
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
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
3 matches
Mail list logo