Just in case anybody is interested: the problem was, that clicking with the
mouse fired the onchange
event of the auto complete field. The javascript responsible for handling
the autocomplete fired it again
after finishing it's work.
Since I am using a hidden field to store and communicate the id's of the
autocomplete selections the workaround was straightforward: I hooked the
onchange event to the hidden field and made the
autocomplete javascript fire an onchange on the hidden field.


ckuehne wrote:
> 
> In the use case from the ajax autocomplete example the field gets
> submitted twice when the selection
> is made with the mouse (the onchange event handler gets called twice). Is
> there a quick way to fix this?
> 
> Conny
> 

-- 
View this message in context: 
http://www.nabble.com/Autocomplete-Textfield-gets-submitted-twice-on-mouse-click-tp14777002p14792287.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to