webtier@glassfish.java.net

_at_ViewScope - Is it safe?

From: <webtier_at_javadesktop.org>
Date: Thu, 16 Apr 2009 07:10:45 PDT

Is the ViewScope memory safe? I mean, does it contents really get destroyed when i change the view? I ask it because as far i know the @Page context of the Seam Framework does not, it only get "cleaned" when the maximum number of views per session expires (15 i think).

Seam FAQ about Page Scope:
http://seamframework.org/Documentation/WhenDoesThePageContextGetDestroyed

I dont know if the implementation logic is the same, so i'm just asking. :)

I was testing the @PreDestroy on a View scoped bean some days I go and it wasn't callled when i changed my view, so that's why i'm worried. And another thing, JSF have a different view tree for each view in each browser tab? So is the @ViewScope multi-tab friendly?
[Message sent by forum member 'israelbgf' (israelbgf)]

http://forums.java.net/jive/thread.jspa?messageID=342427