I would like to have multiple targets hooked into a single EventListener,
but I cannot figure out how to distinguish which component fired the event
within the listener itself.

For example, if I have an event listener:

@EventListener(targets = {"button1","button2","button3","button4"}, events=
"onclick")

*public* *void* someButtonClicked(IRequestCycle cycle)

{

...
}

and I need to pass the id of the component that fired off the event listener
to another function within the listener. Is there anyway to do this without
having to give each button an event listener and having those event
listeners all call another function with the component's ID as an argument?

--
Peter Beshai - Using Tapestry 4.1.1

Pure Mathematics Student
University of Waterloo

Reply via email to