Looking at this it should just work.
On Mon, May 16, 2011 at 4:25 PM, [email protected] <[email protected]>wrote:
> public class IncidentReportPanel extends Panel
> {
> public IncidentReportPanel(String id) {
> super(id);
>
> final Model model = new Model("first model");
> final Label label = new Label("wicketTag", model);
> label.setOutputMarkupId(true);
> add(label);
>
> AjaxLink update = new AjaxLink("updateButton") {
> public void onClick(AjaxRequestTarget target) {
> model.setObject("new model");
> label.setDefaultModel(model);
>
no need to call that. the model is already set
> target.addComponent(label);
> }
> };
> add(update);
> }
> }
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/updating-a-label-s-model-with-ajax-tp3525221p3526331.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>