Re: T5: obtaining Link or InvocationTarget from Component

2007-06-12 Thread Howard Lewis Ship

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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: obtaining Link or InvocationTarget from Component

2007-06-12 Thread Kristian Marinkovic
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