Guten Tag Sven Meier,
am Dienstag, 1. Oktober 2019 um 18:51 schrieben Sie:

> What methods are you iterating over in onEventMethods?

That's not me, but AnotationEventDispatcher:

https://github.com/wicketstuff/core/blob/master/annotationeventdispatcher-parent/annotationeventdispatcher/src/main/java/org/wicketstuff/event/annotation/AnnotationEventSink.java#L138

That is getting all methods annottated with "@OnEvent" and afterwards
checking if the parent component of those methods is able to get
events by calling "canCallListener" on the component:

https://github.com/wicketstuff/core/blob/master/annotationeventdispatcher-parent/annotationeventdispatcher/src/main/java/org/wicketstuff/event/annotation/AnnotationEventSink.java#L187

The former implementation in Wicket 7 provided the method found during
that call, so the component was able to recognize that
AnnotationEventDispatcher is the caller. That is no longer possible,
because the "Method" argument has been removed in WICKET-6137.

So I'm wondering how I'm making sure to only return "true" in that
call if AnnotationEventDispatcher is the caller? Or if I even need to
at all?

The docs for "canCallListener" read so that one should take extra care
to not easily return "true" without good reasons to do so. And my
reason only is AnnotationEventDispatcher forwarding some event I
depend on even if the component is still invisible.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail: thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Reply via email to