Re: Get component id in EventListener with multiple targets

2006-12-20 Thread Cyrille37
Jesse Kuhnert a écrit : Just add a BrowserEvent parameter to your method and it will be automatically populated for you. Once added you should be able to do something along the lines of this to figure out which component fired the event (maybe I should enhance this part to provide a more direct r

Re: Get component id in EventListener with multiple targets

2006-12-20 Thread Jesse Kuhnert
Just add a BrowserEvent parameter to your method and it will be automatically populated for you. Once added you should be able to do something along the lines of this to figure out which component fired the event (maybe I should enhance this part to provide a more direct route): void someButtonCl

Get component id in EventListener with multiple targets

2006-12-20 Thread Peter Beshai
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=