ok, without listeners:
- Implement IDirect,
- Use
DirectServiceParameter dsp = *new* DirectServiceParameter(*this*, new
Object[]{"a custom param"});
and pass it to DirectService
- When the link is clicked, your*
public* *void* trigger(IRequestCycle cycle) will get called



[EMAIL PROTECTED] wrote:
> but when i don't have this binding i.e. there is no html file
> whatsoever, how can i bind the listener?
>
> I am dynamically creating DirectLink there is only java, no html.
>
>
> ----- Original Message ----- From: "andyhot" <[EMAIL PROTECTED]>
> To: "Tapestry users" <users@tapestry.apache.org>
> Sent: Wednesday, October 25, 2006 3:42 PM
> Subject: Re: Creating DirectLink using DirectService
>
>
>> IIRC, a listener is really an instance of
>> org.apache.tapestry.IActionListener
>>
>> Tapestry (automagically) creates instances of that interface that invoke
>> the corresponding component method
>> (when using the listener: binding).
>>
>> You can dig for more at:
>> http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/listener/
>>
>>
>>
>> [EMAIL PROTECTED] wrote:
>>> Hi,
>>>
>>> I want to create DirectLink programmatically i.e. not using html
>>> template. I guess i should use DirectService to construct link etc.
>>> passing parameters with DirectServiceParameter etc.
>>>
>>> But how can i pass the right Listener ?
>>>
>>> gant
>>>
>>
>>
>> -- 
>> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
>> Tapestry / Tacos developer
>> Open Source / J2EE Consulting
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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

Reply via email to