Timo Rantalaiho wrote:
> On Mon, 25 Jun 2007, Thies Edeling wrote:
>   
>> Say I have panel A and panel B each basing their output on the same 
>> model. When panel B updates the model through an ajax request, is it 
>> possible to have panel A refresh automatically without explicitly adding 
>> it to an AjaxRequestTarget ?
>>     
>
> If the update is just being done with ajax, I don't 
> understand how the HTML of panel A could be updated without 
> it being added to AjaxRequestTarget, refreshing model or 
> not. 
>
> Why don't you want to add panel A to the target? Often it 
> is easy enough to find the component in the update, e.g. by
> using a marker interface and visitChildren / findParent. If 
> you show us some code maybe we can give more specific help.
>   
That's what I'm doing now, redirecting the ajax request to the page the 
panel is embedded in. The page
is then responsible for updating/replacing panels where appropiate.
However with panels being reused on multiple pages and having multiple 
panels on a page, which all can generate
an ajax event, this starts to feel a little clumsy. I'd rather have 
Panels monitor the data they're displaying
and update accordingly. Listeners as Igor suggested might be a bit cleaner.

gr,
Thies


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to