Hi all,

I'm upgrading from Wicket 7 to Wicket 8 and seem to have a problem
with WICKET-6137[1]. That removed Component.canCallListener(Method)
which I'm using in the following circumstances:

One page with one form and additional panels to show the results of
the action done by submitting the form. The form provides those
results to the panels simply by publishing some custom event using the
parent page the form is associated with. The important thing to note is
that the panels showing the results are invisible by default until
the event with results arrive.

During implementing that with Wicket 7 I recognized that if the panels
are not visible, they don't receive the sent events as well. So I had
overriden "cannCallListenerInterface":

>         public boolean canCallListener(Method method)
>         {
>                 if (method.isAnnotationPresent(OnEvent.class))
>                 {
>                         return true;
>                 }
>
>                 return super.canCallListener(method);
>         }

That callback doesn't exist anymore and I'm wondering how I'm able to
recognize my custom event? Or is the approach to not distinguish
anything, but only return "true" always?

From the docs of "canCallListener" I had the feeling it would be
better to be super careful on when to return "true". Or is my approach
using a custom event entirely the wrong track and you have better
ones? Thanks!

[1]: https://issues.apache.org/jira/browse/WICKET-6137

canCallListener(Method method)

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