hi salvo,

first of all: welcome @ myfaces!

a window also has a configurable timeout. -> if the user continues in a new
tab and s/he closes the original one, the old window will be closed based
on the timeout.
if the user closes all tabs or starts a new session, all opened windows
will be closed as soon as the session gets closed (e.g. based on the
timeout of the session).

however, if the memory usage is critical for your application, you can use
the api and/or spi provided by codi for a manual cleanup based on your
custom mechanisms.

regards,
gerhard

http://www.irian.at

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

Professional Support for Apache MyFaces



2011/11/10 Salvo Isaja <[email protected]>:
> Hello,
> I'm pretty new to web development in Java, and I'm still learning the
> platform. In order to use Facelets with Ajax, I've found the CODI's View
> Access Scope very promising.
>
> I have a question, though. Maybe I miss something obvious, sorry if this
is
> the case. Each window/tab has its own windowId, and I can figure out why
it
> is needed. I've seen the JS script to drop the windowId when the user
opens
> a link in a new tab. But what when the user *closes* a tab? Do all
> ViewAccessScoped beans leak indefinitely in the session? I came to this
> because I was thinking to drop the windowId parameter from all my h:link's
> as an alternative "solution" to the "open in new tab" issue.
>
> Any suggestions and/or best practices?
>
> Thank you,
>   Salvo
> --
>
>
> --
> Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP
> autenticato? GRATIS solo con Email.it http://www.email.it/f
>
> Sponsor:
> Conto Arancio al 4,20%. Zero spese e massima liberta', aprilo in due
minuti!
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11919&d=10-11
>

Reply via email to