RE: Control panels through Ajax

2012-03-14 Thread Wilhelmsen Tor Iver
My problem is how to redirect the ajax target from one Panel to the other. If Panel A needs to invoke anything in Panel B then Panel A should have a reference to Panel B (or to a mediator object that knows about it), and send the AjaxRequestTarget (which applies to the entire Page's component

RE: Control panels through Ajax

2012-03-14 Thread saschisch87
Wilhelmsen Tor Iver wrote My problem is how to redirect the ajax target from one Panel to the other. If Panel A needs to invoke anything in Panel B then Panel A should have a reference to Panel B (or to a mediator object that knows about it), and send the AjaxRequestTarget (which applies

Re: Control panels through Ajax

2012-03-14 Thread Martin Grigorov
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

RE: Control panels through Ajax

2012-03-14 Thread Wilhelmsen Tor Iver
I´m really new to web programming, so how should that solve my Problem? If I got it right the mediator does only know the colleagues which would be Panels in my case. But the methods of these colleague Panels are hidden because of inheritance (myPanel is child of Panel). Could you describe