You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Patrick Davids <pa...@nubologic.com> on 2013/10/07 14:47:36 UTC
Question / Wicket 6 Events / generic payload
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Question / Wicket 6 Events / generic payload
Posted by Patrick Davids <pa...@nubologic.com>.
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
> 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 <patrick.davids@nubologic.com
>> 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: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
--
Mit freundlichen Grüßen,
Patrick Davids
nuboLOGIC GmbH & Co. KG
Kieler Str. 103-107 • 25474 Bönningstedt
Tel.: +49 40 228539 732
Email: patrick.davids@nubologic.com
http://www.nubologic.com
Handelsregister: HRA6819 Pi | Amtsgericht Pinneberg
Geschäftsführung der Verwaltungsgesellschaft
Daniel Fraga Zander
HRB10145Pi | Amtsgericht Pinneberg
Re: Question / Wicket 6 Events / generic payload
Posted by Martin Grigorov <mg...@apache.org>.
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 <patrick.davids@nubologic.com
> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>