On Fri, 2010-06-18 at 07:31 -0700, peer wrote:
> 
> Martin Grigorov wrote:
> > 
> > On Fri, 2010-06-18 at 06:43 -0700, peer wrote:
> >> Hi Wickets,
> >> 
> >> My initial situation:
> >> A ParentPage which contains a TabbedPanel with tabs. On the Parent Page
> >> is
> >> a
> >> Feedbackpanel which works globally and displays every error message.
> >> The tabs in the TabbedPanel don't know anything about the Feedbackpanel
> >> of
> >> the parent and all request on the tab are done by ajax.
> >> 
> >> Problem:
> >> As fare as I know I always have to add the components to the target to
> >> get
> >> them changed by the wicket engine. The problem is I can't add the
> >> Feedbackpanel to the target because the tabs don't know about it.
> >> 
> >> Approach:
> >> I tried to add a listener to the AjaxRequestTaget, but the target was
> >> null
> >> since there was no AjaxRequest.
> >> 
> >> Question: 
> >> How can I add a Listener to every AjaxRequest done by the ParentPage or
> >> any
> >> child of it to update my Feedbackpanel.
> > The most simple solution:
> > target.addChildren(getPage(), FeedbackPanel.class)
> >> 
> >> Regards,
> >> peer
> >> 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> > 
> > 
> Thank you for your quick answer.
> This solution would be great if would have the ParentPage within my tabs. I
> know that i could iterate over getParent but that doesn't sound like a sweet
> solution.
> 
> The best thing I can imagine right know is that I can tell my ParentPage to
> listen on it's AjaxRequests and also on those of it's children. 
> Is there a way to do it like this?
Check https://issues.apache.org/jira/browse/WICKET-1312
There are some patches for event mechanism.
> 
> regards,
> peer
> 
> 
> Quoted from: 
> http://apache-wicket.1842946.n4.nabble.com/Autoupdate-Components-of-a-ParentPage-within-a-Ajax-Request-tp2260223p2260276.html
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to