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); 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