Hi Sven,

Can you please make me understand why should I use JS here over wicket. I
have read somewhere lately that onfocus in wicket has some fault (Perhaps in
version 1.4. I am not sure if it has been fixed in 1.6 or not. BTW I cant
find the source now :( ). Are you indicating the same fault in wicket as
reason to use JS here?
I want to avoid JS as much as possible and want to keep stuff in wicket
mostly. I would love to leverage wicket's power.

Thanks,
Suvo


Sven Meier wrote
> 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: 

> [email protected]

>> For additional commands, e-mail: 

> [email protected]

>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 

> [email protected]

> For additional commands, e-mail: 

> [email protected]



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

Reply via email to