Re: Notify Action to the Parent Class

2019-05-26 Thread Sebastien
Hi, François solution is based on the wicket event bus which is the recommanded approach. To broadcast to a parent component which might not be the page, you can use : send(this, Broadcast.BUBBLE) Or even send(getPage(), Broadcast.BREADTH) You may also put a breakpoint in onEvent to verify it

Re: Notify Action to the Parent Class

2019-05-26 Thread Sibgha Nazir
Hey, I tried what you mentioned. The condition is never satisfied. *if (event.getPayload() instanceof YourEvent) * On Sun, May 26, 2019 at 6:10 PM Francois Meillet wrote: > Hi Sibgha, > > // here is a simple code > > // > // in your Dpanel > // > protected void onUpdate(AjaxRequestTarget

Re: Notify Action to the Parent Class

2019-05-26 Thread Francois Meillet
Hi Sibgha, // here is a simple code // // in your Dpanel // protected void onUpdate(AjaxRequestTarget target) { send(getPage(), Broadcast.EXACT, new YourEvent(yourDataFromYourDropDownChoice)); } // // in your HomePage, you override the onEvent method // @Override public void

Notify Action to the Parent Class

2019-05-26 Thread Sibgha Nazir
Hi, In my application, Home Page creates DPanel and Dpanel has the drop down menu. In the class DPanel at 'onchange' event, I want to do some action in the class HomePage.java. How can that be possible? *HomePage.java*public HomePage(final PageParameters parameters) {