You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eric Schneider <er...@centralparksoftware.com> on 2005/05/26 20:06:25 UTC
augmenting DirectLink
Hi,
I need the ability to render DirectLinks in an alternate way.
Instead of the standard:
<a href="/myapp/app?service=direct/1/Home/$PageWrapper.foo">Foo</a>
I need it to render like:
<a href="javascript:void(0);"
onclick="window.MyElement.openChild({
name : 'foo',
url : '/myapp/app?service=direct/1/Home/
$PageWrapper.foo',
width : 860, height : 640, focus : true,
scrollbars: 1});">Foo</a>
Is the best approach to implement my own ILinkRenderer? I'm having
trouble finding which default implementation of ILinkRenderer
DirectLink is using (but maybe I'm missing something obvious).
Any tips or examples would be much appreciated.
Thanks in advance.
eric
Re: augmenting DirectLink (resolved)
Posted by Eric Schneider <er...@centralparksoftware.com>.
Hi,
My render worked perfectly. Sorry for the noise!
Eric
On May 26, 2005, at 2:15 PM, Eric Schneider wrote:
> Ha! Well, I found the default link render (DefaultLinkRenderer).
> Took me a while to find because it's so poorly named. ;-)
>
> I'd still appreciate suggestions if this is the best approach.
>
> Thanks!
> e.
>
> On May 26, 2005, at 2:06 PM, Eric Schneider wrote:
>
>
>> Hi,
>>
>> I need the ability to render DirectLinks in an alternate way.
>>
>> Instead of the standard:
>>
>> <a href="/myapp/app?service=direct/1/Home/$PageWrapper.foo">Foo</a>
>>
>> I need it to render like:
>>
>> <a href="javascript:void(0);"
>> onclick="window.MyElement.openChild({
>> name : 'foo',
>> url : '/myapp/app?service=direct/1/
>> Home/$PageWrapper.foo',
>> width : 860, height : 640, focus :
>> true, scrollbars: 1});">Foo</a>
>>
>> Is the best approach to implement my own ILinkRenderer? I'm
>> having trouble finding which default implementation of
>> ILinkRenderer DirectLink is using (but maybe I'm missing something
>> obvious).
>>
>> Any tips or examples would be much appreciated.
>>
>> Thanks in advance.
>> eric
>>
>>
>
>
> ---------------------------------------------------------------------
> 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: augmenting DirectLink
Posted by Eric Schneider <er...@centralparksoftware.com>.
Ha! Well, I found the default link render (DefaultLinkRenderer).
Took me a while to find because it's so poorly named. ;-)
I'd still appreciate suggestions if this is the best approach.
Thanks!
e.
On May 26, 2005, at 2:06 PM, Eric Schneider wrote:
> Hi,
>
> I need the ability to render DirectLinks in an alternate way.
>
> Instead of the standard:
>
> <a href="/myapp/app?service=direct/1/Home/$PageWrapper.foo">Foo</a>
>
> I need it to render like:
>
> <a href="javascript:void(0);"
> onclick="window.MyElement.openChild({
> name : 'foo',
> url : '/myapp/app?service=direct/1/Home/
> $PageWrapper.foo',
> width : 860, height : 640, focus :
> true, scrollbars: 1});">Foo</a>
>
> Is the best approach to implement my own ILinkRenderer? I'm
> having trouble finding which default implementation of
> ILinkRenderer DirectLink is using (but maybe I'm missing something
> obvious).
>
> Any tips or examples would be much appreciated.
>
> Thanks in advance.
> eric
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org