Check out the documentation on the activate and passivate component events.

You can think of passivate and activate as a kind of very lightweight
persistent storage, where the values are stored positionally in the
render URL.

I'm still thinking about the relationship between PageLink component
and the LinkFactory.

Currently, PageLink doesn't have a context parameter, and the context
if any is collected by triggering the passivate event on the page
(this is inside LinkFactoryImpl).

That's great if the target page knows what its context should be, but
could involve repeatedly setting the value just before the PageLink
renders.

I'm thinking that PageLink should support a context parameter that
bypasses the target page's passivate event. This puts some
responsibility on the programmer to ensure that any such use of
PageLink provides the correct context that will be needed by the
target page's activate event handler.

On 2/15/07, D&J Gredler <[EMAIL PROTECTED]> wrote:
I'm interested in knowing the answer to this, as well. In fact, to take it
one step further:

Instead of parameters:

http://www.mysite.com/view?country=spain
http://www.mysite.com/view?country=usa
http://www.mysite.com/view?country=france

And instead of including the page name:

http://www.mysite.com/view/spain
http://www.mysite.com/view/usa
http://www.mysite.com/view/france

I'd like to have something like:

http://www.mysite.com/spain
http://www.mysite.com/usa
http://www.mysite.com/france


On 2/15/07, Dennis Kempin <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am experimenting with the tapestry snapshot version and want to write a
> little page class that takes an integer parameter to specify an content id
> to show. Just like passing a context with an Action link, but just without
> the HTTP redirect back to the Page URL.
> I could make use of a persistent field to store the id passed with the
> context of the ActionLink to show it after reloading, but well that seems
> to a be very hacky solution.
>
> Example:
> /nopaste/4 is handled by the /nopaste page, but how do I get the integer
> value after the slash?
>
> (well i could use the good old ?id=4 GET parameters, but the above example
> would look more consistent, IMHO)
>
> regards
> Dennis
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to