You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Edward Scanzano <es...@yahoo.com> on 2005/08/09 04:47:07 UTC
Need custom DirectLink component
Hi all,
I need a custom link component that will return only
the href string (no "href">
for instance
<a href="#" jwcid="@MyCustomLink"
listener="ognl:listeners.doEdit"
parameters="ognl:parameterContainerIndex"></a>
returns
"/intaglioWebClient/app?service=direct/1/CWorkspace/folderList.$DirectLink&sp=S21adsdfasdfasdf2232d"
nothing else!
Can someone get me started on which class to subclass
(I presume it is DirectLink) but what to code is a
mystery to me.
Thanks for the headstart on this.
E
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Need custom DirectLink component
Posted by Nick Westgate <ni...@key-planning.co.jp>.
I think so. But his sample usage has a listener, so I'm not sure ...
Cheers,
Nick.
The Chris Method wrote:
> Is he just looking for what getLink(...) in the DirectService class will
> provide?
>
>>>><a href="#" jwcid="@MyCustomLink"
>>>>listener="ognl:listeners.doEdit"
>>>>parameters="ognl:parameterContainerIndex"></a>
>>>>
>>>>returns
>>>>
>>"/intaglioWebClient/app?service=direct/1/CWorkspace/folderList.$DirectLink&sp=S21adsdfasdfasdf2232d"
>>
>>>>nothing else!
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Need custom DirectLink component
Posted by The Chris Method <th...@gmail.com>.
Is he just looking for what getLink(...) in the DirectService class will
provide?
On 8/9/05, Nick Westgate <ni...@key-planning.co.jp> wrote:
>
> Hold on. Reading again, it looks like you don't want a link.
> Do you just need the string you quoted?
>
> In that case you can write a helper function to build the string
> you want and just @Insert it into your page etc.
>
> Look at the source for AbstractLinkComponent and your chosen link
> component (e.g. DirectLink) to see how to get access to the URI
> for a link specific to a particular service.
>
> Cheers,
> Nick.
>
>
> Nick Westgate wrote:
> > Hi Edward.
> >
> > You'll want to subclass org.apache.tapestry.link.DefaultLinkRenderer.
> >
> > Bend it to your will and pass a (static) instance to the renderer
> > parameter of your chosen link component.
> >
> > Cheers,
> > Nick.
> >
> >
> > Edward Scanzano wrote:
> >
> >> Hi all,
> >>
> >> I need a custom link component that will return only
> >> the href string (no "href">
> >>
> >> for instance
> >>
> >> <a href="#" jwcid="@MyCustomLink"
> >> listener="ognl:listeners.doEdit"
> >> parameters="ognl:parameterContainerIndex"></a>
> >>
> >> returns
> >>
> >>
> "/intaglioWebClient/app?service=direct/1/CWorkspace/folderList.$DirectLink&sp=S21adsdfasdfasdf2232d"
> >>
> >>
> >> nothing else!
> >>
> >> Can someone get me started on which class to subclass
> >> (I presume it is DirectLink) but what to code is a
> >> mystery to me.
> >>
> >> Thanks for the headstart on this.
> >> E
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
Re: Need custom DirectLink component
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Hold on. Reading again, it looks like you don't want a link.
Do you just need the string you quoted?
In that case you can write a helper function to build the string
you want and just @Insert it into your page etc.
Look at the source for AbstractLinkComponent and your chosen link
component (e.g. DirectLink) to see how to get access to the URI
for a link specific to a particular service.
Cheers,
Nick.
Nick Westgate wrote:
> Hi Edward.
>
> You'll want to subclass org.apache.tapestry.link.DefaultLinkRenderer.
>
> Bend it to your will and pass a (static) instance to the renderer
> parameter of your chosen link component.
>
> Cheers,
> Nick.
>
>
> Edward Scanzano wrote:
>
>> Hi all,
>>
>> I need a custom link component that will return only
>> the href string (no "href">
>>
>> for instance
>>
>> <a href="#" jwcid="@MyCustomLink"
>> listener="ognl:listeners.doEdit"
>> parameters="ognl:parameterContainerIndex"></a>
>>
>> returns
>>
>> "/intaglioWebClient/app?service=direct/1/CWorkspace/folderList.$DirectLink&sp=S21adsdfasdfasdf2232d"
>>
>>
>> nothing else!
>>
>> Can someone get me started on which class to subclass
>> (I presume it is DirectLink) but what to code is a
>> mystery to me.
>>
>> Thanks for the headstart on this.
>> E
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Need custom DirectLink component
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Hi Edward.
You'll want to subclass org.apache.tapestry.link.DefaultLinkRenderer.
Bend it to your will and pass a (static) instance to the renderer
parameter of your chosen link component.
Cheers,
Nick.
Edward Scanzano wrote:
> Hi all,
>
> I need a custom link component that will return only
> the href string (no "href">
>
> for instance
>
> <a href="#" jwcid="@MyCustomLink"
> listener="ognl:listeners.doEdit"
> parameters="ognl:parameterContainerIndex"></a>
>
> returns
>
> "/intaglioWebClient/app?service=direct/1/CWorkspace/folderList.$DirectLink&sp=S21adsdfasdfasdf2232d"
>
> nothing else!
>
> Can someone get me started on which class to subclass
> (I presume it is DirectLink) but what to code is a
> mystery to me.
>
> Thanks for the headstart on this.
> E
>
>
>
> ---------------------------------------------------------------------
> 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