On Friday, October 12, 2007, 11:17:19 AM, Per <[EMAIL PROTECTED]> wrote:
> Hi Matej, > Thanks for your answer. But how can i know in a child model beside > the changed one that i have to pull my data again? > E.g. if i have page with two panels. Panel1 executes a link and > changes its data. The data change in Panel1 has to reflected in > Panel2 to. My intension was to get a plan how i can go the wicket > way to update the model in Panel2. You have both panels using the same data, i.e. the same model or parent model? Take a look at CompoundPropertyModel.bind() (used to require BoundCompoundPropertyModel, so search for that in the Wiki's "New User Guide" page. As for the UI itself, then when the page is re-displayed, both panels will update with the new values automatically. If you're using AJAX to do the updating, you'd have to explicitly add both panels to the redraw 'target' to have them refresh, but on a normal request, the whole page will get rewritten anyway. /Gwyn --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
