You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Vincent <vi...@gmail.com> on 2006/02/21 04:43:38 UTC

Re: can information stored in the page be cleaned after user leave these page automatically?

Hi guys,

I also met the same problem with clean up issue, is there any working
solution for this?

regards,
Vincent

On 12/16/05, Geoff Longman <gl...@gmail.com> wrote:
> s'ok to be a newbie!
>
>
> On 12/15/05, Stephane Decleire <sd...@cariboo-networks.com> wrote:
> > I thought it has because i have never found a solution to clean properly
> > persistent properties on a page in the special case where this page is
> > left using an ExternalLink (cause i haven't found the right place to
> > call the forgetPage ou the discardPage function in this specific case).
> > But i'm just a newbie ...
> >
> > Stephane
> >
> > Geoff Longman wrote:
> >
> > >has nothing to do with links...
> > >
> > >  /**
> > >     *  Much like {@link IEngine#forgetPage(String)}, but the page
> > >stays active and can even
> > >     *  record changes, until the end of the request cycle, at which
> > >point it is discarded
> > >     *  (and any recorded changes are lost).
> > >     *  This is used in certain rare cases where a page has persistent
> > >state but is
> > >     *  being renderred "for the last time".
> > >     *
> > >     *  @since 2.0.2
> > >     *
> > >     **/
> > >
> > >    public void discardPage(String name);
> > >
> > >
> > >On 12/15/05, Stephane Decleire <sd...@cariboo-networks.com> wrote:
> > >
> > >
> > >>cycle.discardPage() is the solution where there is a listener (as in
> > >>DirectLink) but what is the right way  to discard persistent properties
> > >>when a page is left using an ExternalLink ?
> > >>
> > >>Stephane
> > >>
> > >>Geoff Longman wrote:
> > >>
> > >>
> > >>
> > >>>The short answer is no, there is no automatic cleanup.
> > >>>
> > >>>cycle.discardPage() will turf persistent properties
> > >>>
> > >>>if you have private fields you have to clean them up yourself using
> > >>>the detach mechanism.
> > >>>
> > >>>Geoff
> > >>>
> > >>>On 12/15/05, Ryan Pan <pa...@gmail.com> wrote:
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>>Hi all,
> > >>>>   Can any body tell me how to clean the information stored in the page
> > >>>>automatically?
> > >>>>   I encounter a issue that when I come back to the page that had been
> > >>>>to,informations had not been cleaned.
> > >>>>   So any answer?
> > >>>>
> > >>>>Thanks,
> > >>>>Ryan.
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>--
> > >>>The Spindle guy.           http://spindle.sf.net
> > >>>Get help with Spindle:
> > >>>http://lists.sourceforge.net/mailman/listinfo/spindle-user
> > >>>Announcement Feed:
> > >>>http://www.jroller.com/rss/glongman?catname=/Announcements
> > >>>Feature Updates:            http://spindle.sf.net/updates
> > >>>
> > >>>---------------------------------------------------------------------
> > >>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > >>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>--
> > >>Stéphane Decleire
> > >>
> > >>05 56 57 99 20
> > >>06 63 78 69 06
> > >>
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >--
> > >The Spindle guy.           http://spindle.sf.net
> > >Get help with Spindle:
> > >http://lists.sourceforge.net/mailman/listinfo/spindle-user
> > >Announcement Feed:
> > >http://www.jroller.com/rss/glongman?catname=/Announcements
> > >Feature Updates:            http://spindle.sf.net/updates
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> > --
> > Stéphane Decleire
> >
> > 05 56 57 99 20
> > 06 63 78 69 06
> >
> >
> >
>
>
> --
> The Spindle guy.           http://spindle.sf.net
> Get help with Spindle:
> http://lists.sourceforge.net/mailman/listinfo/spindle-user
> Announcement Feed:
> http://www.jroller.com/rss/glongman?catname=/Announcements
> Feature Updates:            http://spindle.sf.net/updates
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>