You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mirko Viviani <mi...@objectlab.org> on 2004/02/08 18:03:36 UTC
ActionLink and tapestry urls
Ciao!
I have a page that display the items of a list inside a window (10 items
per page) and a navigator that shift the window through the list.
Navigator (Prev, Next action link)
foreach
items
/foreach
If I hit the Prev/Next action it works correctly but the browser url
display the name of the clicked action link
(http://.../MsgNavigator.NextLink) and if I hit the reload function of
the browser it reinvoke the previous action link instead of refreshing
the current page.
A solution could be to implement the navigator with direct links and
give the desired page number, but how to fix with action links?
3.0-beta-4
Thanks
Ciao
Mirko
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: ActionLink and tapestry urls
Posted by Larry Streepy <la...@staffmix.com>.
This seems like a case where instead of "hiding the plumbing" from the
programmer, Tapestry is actually making the plumbing harder. I read the
code that was posted in the article and it's a prime example of the reason
that Tapestry's learning curve is so steep. I'm fairly new to Tapestry, and
that code would not have come to mind if I was faced with the same problem.
I may be in the weeds, but why doesn't the ActionLink use a tiny fragment of
javascript to set the URL that the browser records when the link is
followed. This would make a refresh do what was expected - refresh the
page, not reinvoke the action. I know this relies on javascript, so in
browsers with no support (or support is disabled) the behavior would be what
it is today. At least in the common case, all of the plumbing would be
hidden from the programmer. Similarly, since this seems to be a common
problem for ActionLink usage, there should be common support code for
"fixing" things, as shown in the posted code.
Thanks.
Larry.
> -----Original Message-----
> From: Programozás [mailto:programozas@hotmail.com]
> Sent: Sunday, February 08, 2004 12:47 PM
> To: Tapestry users
> Subject: Re: ActionLink and tapestry urls
>
> There were some posts about this, please see the list archive.
>
> (I asked almost the same question about a 2 weeks ago, I have been pointed
> to the link below. I hope it helps to you, too:
> http://nagoya.apache.org/eyebrowse/ReadMsg?listName=tapestry-
> user@jakarta.apache.org&msgId=1071406
> )
>
> Norbi
>
> ----- Original Message -----
> From: "Mirko Viviani" <mi...@objectlab.org>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Sunday, February 08, 2004 6:03 PM
> Subject: ActionLink and tapestry urls
>
>
> > Ciao!
> >
> > I have a page that display the items of a list inside a window (10 items
> > per page) and a navigator that shift the window through the list.
> >
> >
> > Navigator (Prev, Next action link)
> >
> > foreach
> > items
> > /foreach
> >
> >
> > If I hit the Prev/Next action it works correctly but the browser url
> > display the name of the clicked action link
> > (http://.../MsgNavigator.NextLink) and if I hit the reload function of
> > the browser it reinvoke the previous action link instead of refreshing
> > the current page.
> >
> > A solution could be to implement the navigator with direct links and
> > give the desired page number, but how to fix with action links?
> >
> > 3.0-beta-4
> >
> > Thanks
> >
> > Ciao
> > Mirko
> >
> > ---------------------------------------------------------------------
> > 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
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ActionLink and tapestry urls
Posted by Programozás <pr...@hotmail.com>.
There were some posts about this, please see the list archive.
(I asked almost the same question about a 2 weeks ago, I have been pointed
to the link below. I hope it helps to you, too:
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=tapestry-user@jakarta.apache.org&msgId=1071406
)
Norbi
----- Original Message -----
From: "Mirko Viviani" <mi...@objectlab.org>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Sunday, February 08, 2004 6:03 PM
Subject: ActionLink and tapestry urls
> Ciao!
>
> I have a page that display the items of a list inside a window (10 items
> per page) and a navigator that shift the window through the list.
>
>
> Navigator (Prev, Next action link)
>
> foreach
> items
> /foreach
>
>
> If I hit the Prev/Next action it works correctly but the browser url
> display the name of the clicked action link
> (http://.../MsgNavigator.NextLink) and if I hit the reload function of
> the browser it reinvoke the previous action link instead of refreshing
> the current page.
>
> A solution could be to implement the navigator with direct links and
> give the desired page number, but how to fix with action links?
>
> 3.0-beta-4
>
> Thanks
>
> Ciao
> Mirko
>
> ---------------------------------------------------------------------
> 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