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: [email protected] [mailto:[email protected]] 
Sent: 16. mai 2011 03:58
To: [email protected]
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 on the page doesn't change
when the button is clicked. This label happens to be hidable, and when i
hide it, then reshow it, the label is redisplayed with the new model. I'm
doing something wrong. What is going on here?

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/updating-a-label-s-model-with-ajax-tp3525221p3525221.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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to