You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kristian Marinkovic <kr...@porsche.co.at> on 2007/06/12 11:22:17 UTC
T5: obtaining Link or InvocationTarget from Component
Hi,
can someone help me to obtain a Link or InvocationTarget
instance from a specific Component (ActionLink, PageLink).
I'm trying to delegate this information to a service that generates
the necessary javascript for my asynchronous invocations.
First i thought the ComponentInvocationMap were the right
place to look... but that was a dead end :)
i try to do this from a Mixin class, so i think the ComponentResources
should be my starting point.
g,
kris
Re: T5: obtaining Link or InvocationTarget from Component
Posted by Howard Lewis Ship <hl...@gmail.com>.
There's a few different ways to accomplish what you need, but it would
be easier if you started with your goal, rather than the approaches
you've tried that failed.
You could replace the LinkFactory itself.
You could get the ComponentResources for the ActionLink or PageLink.
The ComponentInvocationMap was added by Kent to facilitate the
PageTester but your could leverage the same APIs for your purposes.
On 6/12/07, Kristian Marinkovic <kr...@porsche.co.at> wrote:
> Hi,
>
> can someone help me to obtain a Link or InvocationTarget
> instance from a specific Component (ActionLink, PageLink).
> I'm trying to delegate this information to a service that generates
> the necessary javascript for my asynchronous invocations.
> First i thought the ComponentInvocationMap were the right
> place to look... but that was a dead end :)
>
> i try to do this from a Mixin class, so i think the ComponentResources
> should be my starting point.
>
> g,
> kris
>
>
--
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org