Hi all,

I would like to update a list model when the user clicks on a certain link. 
However, when the listPanel is rendered after clicking on the link, the model 
seems not to be updated and still contains the old values.

How to fix this?

PAGE:

IModel<List<P>> pModel;

public SomePage() {

        pModel = new ListModel<P>(someService.caculate());

        final Panel listPanel = new ListPanel("itemList", pModel);
        add(listPanel);

    add(new AjaxFallbackLink("link") {
            @Override
            public void onClick(AjaxRequestTarget target) {
                pModel = new ListModel<P>(someService.caculate());
                target.add(listPanel);
            }
    });
}

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

Reply via email to