Ok.. So I took a look at it and it is ignoring the IEvent.

I'm actually interested in how to cleanly handle multiple type of IEvents 
without having to 
do if/else or instanceOf. Was curious if anybody had a nice pattern to follow.

        @Override
115             public void onEvent(Component component, IEvent<?> event)
116             {
117                     invocationTimes++;
118             }
119



On Jun 19, 2012, at 2:20 PM, Martin Grigorov wrote:

> See org.apache.wicket.EventDispatcherTest in wicket-core's tests
> 
> On Tue, Jun 19, 2012 at 9:58 PM, Douglas Ferguson <[email protected]> wrote:
>> Anybody have a good pattern for using Events without having lots of 
>> instanceOf, if/else, or switch statements?
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
> 
> 
> 
> -- 
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to