You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sommeralex <al...@gmail.com> on 2012/12/26 20:07:56 UTC
page navigation
shouldnt it be a normal function of a tapestry page to know its predecessor?
they only thing i found to get the previous page is by passing the
predecessor into the context.
http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntopage1/abc
--
View this message in context: http://tapestry.1045711.n5.nabble.com/page-navigation-tp5718990.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: page navigation
Posted by sommeralex <al...@gmail.com>.
thank you for your answer! i understand the arguments from a theoretical
point of view. but in my case, such a feature would be great, even if the
technical solution would not be "perfect".
I would be happy "enough" if every page would know its predecessor, with, or
without its context and if the previous page is for whatever reason not
valid (e.g session timeout), it should just jump to a default page.
I have two different pages X and Y, both directing to one single page A.
Within this page A, the user is able to delete one entity. After deletion,
it makes definitely no sense to remain on that site. Now, i see two options:
Option 1:
Go to a new page, which just shows the information: "entity deleted - what
do you want to do now" with giving several pagelinks as options. But then,
the page links have to be context sensitive. (e.g dont show backLink Y if
user came from page X and so on)
Option 2:
The better approach in my opinion would be to jump to the previous page and
throwing some text information on that site ("entity successfully deleted")
Something like:
A
pageRenderLinkSource.createPageRenderLinkWithContext(this.getPreviousPage().toClass(),
optionalContextParametersForPreviousPageAsList, DefaultPage.class,
optionalContextParametersForDefaultPageAsList);
B
pageRenderLinkSource.createPageRenderLinkWithOriginalContext(this.getPreviousPage().toClass(),
DefaultPage.class, optionalContextParametersForDefaultPageAsList);
would be something i would just be happy with even with having in mind that
different previous pages may have different activation contexts. At least, i
could check the previousPage type and decide then which context parameters
to use.
But, as it seems, this functionality is something users dont really need or
rely on for several reasons as you have mentioned - or are using custom
solutions. Therefore, i conclude that i have also to implement a custom
solution (just with passing the previous into the activation context)
thx
alex
--
View this message in context: http://tapestry.1045711.n5.nabble.com/page-navigation-tp5718990p5718993.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: page navigation
Posted by Howard Lewis Ship <hl...@gmail.com>.
Further, part of a page is its page activation context: knowing that
ProductCatalog/1234 is a 'Minolta Camera" and ProductCatalog/5465 is a
"Bogen Tripod", and the relationship between these two configurations of
the ProductCatalog page, is again very application specific.
Re: page navigation
Posted by Howard Lewis Ship <hl...@gmail.com>.
HTTP is stateless and pages can be accessed "randomly": from other pages,
from bookmarks, by typing the URL directly. It is up to the application to
track the kind of breadcrumbs navigation, since this is an area where
one-size-fits-none (i.e., any solution built into Tapestry would be
insufficient for nearly any application).
On Wed, Dec 26, 2012 at 11:07 AM, sommeralex <al...@gmail.com>wrote:
> shouldnt it be a normal function of a tapestry page to know its
> predecessor?
>
> they only thing i found to get the previous page is by passing the
> predecessor into the context.
>
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntopage1/abc
>
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/page-navigation-tp5718990.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com