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
> 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 > 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-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@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.dav...@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

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 PM, Patrick Davids  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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org