Re: Question / Wicket 6 Events / generic payload

2013-10-11 Thread Patrick Davids
Hi Martin, ok, thanx for your feedback. kind regards Patrick Am 10.10.2013 17:16, schrieb Martin Grigorov: Hi, Wicket's default #onEvent() cannot use the event type due to technical problems. But different impls of IEventDispatcher can give you the proper type. See

Question / Wicket 6 Events / generic payload

2013-10-10 Thread Patrick Davids
Hi all, why does component send method uses generic payload T, but onEvent of Components receives ? events? I need to cast it anyway? Whats the benefit of having generics here? kind regards Patrick - To unsubscribe, e-mail:

Re: Question / Wicket 6 Events / generic payload

2013-10-10 Thread Martin Grigorov
Hi, Wicket's default #onEvent() cannot use the event type due to technical problems. But different impls of IEventDispatcher can give you the proper type. See https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/annotationeventdispatcher-parent for example. On Mon, Oct 7, 2013 at 3:47