Hi, I think the best approach is to share models between the panels combined with events. I.e. Panel A uses the model to decide which node is the selected one in the Tree. Panel B uses the model to decide what details to show for this node. If Panel A has a reference to Panel B then you can just do: target.add(panelB). But if there is no direct reference then you can use the Event system in Wicket 1.5. See http://www.wicket-library.com/wicket-examples/events/ for an example. Wicket sends automatically an event with the AjaxRequestTarget as a payload for each Ajax request. You may use it or you may fire your own event with your own payload additionally.
On Wed, Mar 14, 2012 at 2:17 PM, Alexander Zotter <[email protected]> wrote: > > > Hi, > > > > I´m trying to achieve a 4 Panel Page, which has a navigating panel (which is > a wicket tree basically) and a detailpanel which should show detail for the > selected element. > > > > My problem is how to redirect the ajax target from one Panel to the other. > Are there any best practice examples, because I´ve been searching for a > while now and wasn´t able to get panelbased ajax architecture examples. > > > > Thx > > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
