You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Scott Yeadon <sc...@anu.edu.au> on 2004/07/29 01:18:15 UTC

Listeners: passing and obtaining parameters

Hi,

I have written a Listener in java, but I want to make it more generic 
and pass parameters to it.
Am I able to pass parameters to the Listener class from the <java> 
element - the examples indicate <java> is an empty element with a single 
<class> attribute?

Assuming I can pass them, what is mechanism for obtaining access to them 
within the Listener, since I only directly have accessd to the event 
object and indirectly form widgets?

Thanks.

Scott.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Listeners: passing and obtaining parameters

Posted by Bruno Dumon <br...@outerthought.org>.
On Thu, 2004-07-29 at 01:18, Scott Yeadon wrote:
> Hi,
> 
> I have written a Listener in java, but I want to make it more generic 
> and pass parameters to it.
> Am I able to pass parameters to the Listener class from the <java> 
> element - the examples indicate <java> is an empty element with a single 
> <class> attribute?

Indeed, passing parameters is currently not possible.

> 
> Assuming I can pass them, what is mechanism for obtaining access to them 
> within the Listener, since I only directly have accessd to the event 
> object and indirectly form widgets?

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org