Sunday, June 29, 2014

Using GWT custom event and constructor


I have two panel.
Panel A send custom GWT event to Panel B to modify the appearance of Panel B.
The event bus is defined on their parent panel.
The event sending by event bus defined in other methods works after the initialization (constructor execution) of these 2 panels.

But, if I send an event in the constructor of Panel A to Panel B, the event handling doesn't work.
I can build a constructor of Panel B to initialize by parameters. But why the event sending from constructor doesn't work as expected?


No comments:

Post a Comment