getPage() will return 'null' only if you call send() in PanelB's constructor.
Move the code in PanelB#onInitialize(). See Broadcast.EXACT. On Wed, Sep 19, 2012 at 6:28 PM, lucast <lucastol...@hotmail.com> wrote: > Dear Forum, > I have the following tree structure: WebPage has Panel A, which has Panel B. > I am trying to propagate an event from Panel B so that it is caught from > WebPage. > > Normally, I would propagate an event in the usual way: > send(*getPage()*, Broadcast.BREADTH, new EventUpdate(someObject) ); > > However, getPage() is null when calling from PanelB. > How can I propagate the event from PanelB so that it is caught from WebPage > when calling getPage() returns null? > I really don't know how else I should propagate such event. > > Thanks in advance, > Lucas > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Unable-to-succesfully-propagate-event-from-panel-since-getPage-throws-error-tp4652153.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org