Re: updating a label's model with ajax

2011-05-16 Thread Martin Grigorov
Show us your code. On Mon, May 16, 2011 at 3:58 AM, wmike1...@gmail.com wmike1...@gmail.comwrote: 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.

RE: updating a label's model with ajax

2011-05-16 Thread Wilhelmsen Tor Iver
: 16. mai 2011 03:58 To: users@wicket.apache.org Subject: updating a label's model with ajax 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

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

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 wmike1...@gmail.comwrote: public class IncidentReportPanel extends Panel { public IncidentReportPanel(String id) { super(id); final Model model = new

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.

updating a label's model with ajax

2011-05-15 Thread wmike1...@gmail.com
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 on the page doesn't change when the button is clicked. This label happens to be hidable,