You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jer Kah <je...@gmail.com> on 2005/07/13 21:19:11 UTC
stale link with multiple windows
Hey everyone,
I have a webpage(1) that has a list of tasks. When you click on an
item, a new window(2) opens that lists the steps that are needed to
complete the task. On this window, there are several directLinks and
LinkSubmits so the user can check off which steps have been completed.
Note that the number of steps per task vary.
I'm encountering my problem when I have multiple windows of type (2)
open at once. I can get the multiple windows to open, but I get a
stale link when I edit one and then edit another. For example, I open
Task 1 in a new window and then I open Task 2 in another new window.
If I try to edit a step for Task 1, I get the stale link.
Have any of you faced a problem similar to this? What was the way to fix it?
Thanks,
Jer
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: stale link with multiple windows
Posted by Robert Zeigler <ro...@scazdl.org>.
Offhand, I'd say it sounds like you're using page-persistent
properties, and that the "task" being stored in window-2.1 is different
than the task being stored in window-2.2.
So, you click on task1, window-2 (2.1)pops up. task1 is saved as some
property "task" for the page.
Then you click on task2, and another window-2 (2.2) pops up, and task2
is saved in property "task" for the page. So, then when you submit the
form for task1, it's "getting" task2 as it's task property, and you get
the stale-link exception.
If this is, in fact, what's happening, then I'd suggest making the
"task" property (or whatever variable is being persistently stored)
/not/ persistent, and then put a hidden component at the beginning of
your form...
<input type="hidden" jwcid="@Hidden" value="ognl:task"/>
That way, the "correct" task will be used on form submission.
Robert
Jer Kah wrote:
> Hey everyone,
>
> I have a webpage(1) that has a list of tasks. When you click on an
> item, a new window(2) opens that lists the steps that are needed to
> complete the task. On this window, there are several directLinks and
> LinkSubmits so the user can check off which steps have been completed.
> Note that the number of steps per task vary.
>
> I'm encountering my problem when I have multiple windows of type (2)
> open at once. I can get the multiple windows to open, but I get a
> stale link when I edit one and then edit another. For example, I open
> Task 1 in a new window and then I open Task 2 in another new window.
> If I try to edit a step for Task 1, I get the stale link.
>
> Have any of you faced a problem similar to this? What was the way to fix it?
>
> Thanks,
> Jer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org