Re: updating a label's model with ajax

2011-05-15 Thread Martin Grigorov
Show us your code. On Mon, May 16, 2011 at 3:58 AM, wmike1...@gmail.com wrote: > Hi all, > > I'm looking to change the model of a label when a button is clicked. As of > now, I'm using an ajax button and doing target.addComponent(myLabel) inside > that button's onclick method. However, the text o

RE: updating a label's model with ajax

2011-05-15 Thread Wilhelmsen Tor Iver
My guess: You have forgotten to call myLabel.setOutputMarkupId(true) or myLabel.setOutputPlaceholderTag(true) so the Ajax framework cannot find the element in the DOM. mvh - Tor Iver Wilhelmsen, Arrive AS -Original Message- From: wmike1...@gmail.com [mailto:wmike1...@gmail.com] Sent:

Re: updating a label's model with ajax

2011-05-16 Thread wmike1...@gmail.com
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.setOutputMa

Re: updating a label's model with ajax

2011-05-16 Thread Martin Grigorov
Looking at this it should just work. On Mon, May 16, 2011 at 4:25 PM, wmike1...@gmail.com wrote: > public class IncidentReportPanel extends Panel > { >public IncidentReportPanel(String id) { >super(id); > > final Model model = new Model("first mode

Re: updating a label's model with ajax

2011-05-16 Thread wmike1...@gmail.com
Problem was resolved. I had some malformed html throwing things off. Thanks for all the replies. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-a-label-s-model-with-ajax-tp3525221p3526444.html Sent from the Users forum mailing list archive at Nabble.com. ---