Thanks.  After much investigation with the programmer in question, we
realized that he was causing a page refresh that was trying to access a now
non-existent item.  Problem Solved.

Man, I love open source, especially the Tapestry one, answer are quick,
accurate, and usable.

Thanks a lot for all your help (especially Howard).

Adam Greene
ROMulin Group Inc

885 Main St, Suite 16
Moncton, NB
E1C 1G5

Ph: (506) 863-1014 x4
Fx: (506) 854-6886

http://www.romulin.com/

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:55 AM
To: Adam Greene
Subject: Re: [Tapestry-developer] StaleLink Problem

In order to avoid getting StaleLink exceptions you must
ensure that your page will render identically two times
in a row.

It gets rendered once to provide the page the client
sees in the browser.

It gets rendered a second time in the rewind phase;
which is how the Action knows when to notify its
listener (even when there are loops and conditionals in
the page).

In a CRUD (Create Update Delete) type application, your
page would likely have to store, as a persistent page
property, the primary key of the object displayed on the
page.

Quite often, this is not possible (perhaps you are
working off of database data that can change).  In that
case, make use of a Direct component instead.

Please read the Tapestry Developer's guide; it describes
this more fully.


--
[EMAIL PROTECTED]

http://tapestry.sf.net
> I'm trying to use an Action component, but every time I use it, it
generates
> Stale Link pages.  What am I doing wrong?
>
> Tapestry version 2.0.2a
>
> I'm using a Visit, which should make the application stateful.  On top of
> that I thought using an Action component caused a session to be created
> anyways.  When I was doing work with custom Engines and Visit object, I
had
> to use setStateful on the engine to get the visit stateful.  Is there
> another issues I'm not aware of??
>
> Adam Greene
> ROMulin Group Inc
>
> 885 Main St, Suite 16
> Moncton, NB
> E1C 1G5
>
> Ph: (506) 863-1014 x4
> Fx: (506) 854-6886
>
> http://www.romulin.com/
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Gadgets, caffeine, t-shirts, fun stuff.
> http://thinkgeek.com/sf
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to