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 PM, Patrick Davids <[email protected] > wrote: > 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: [email protected] > For additional commands, e-mail: [email protected] > >
