Looking at this it should just work. On Mon, May 16, 2011 at 4:25 PM, wmike1...@gmail.com <wmike1...@gmail.com>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: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>