Hi,

you should do that with JavaScript only.

Sven

On 07/30/2014 07:35 PM, suvojit168 wrote:
Hi,

Thanks for replying.

My requirement is to clear the textfield on onfocus (although here I was
trying to set a string in textfield). Unless I add the component to
ajaxtarget, how will it be updated on UI?

Sven Meier wrote
How can I get the value of actual model and not default model.
Sorry, I don't understand that.
Sorry for being vague, I wanted to understand why does doing
*"this.getComponent().setDefaultModelObject("ChangedViaDefaultSetModel");"*

change the textfield value but
*String thisValue =
                                                
this.getComponent().getDefaultModelObjectAsString();
                                thisValue = "ChangedNormally";*

does not? I think after all both means same here. Correct me if I am wrong.

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/onfocus-event-getting-called-recursively-in-Apache-wicket-tp4666802p4666807.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



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to