I was able to get this to work after hours of suffering. I think the
problem was in my code that was triggering/handling "change" event.

Thanks

On Sun, Dec 18, 2011 at 12:28 PM, Alec Swan <[email protected]> wrote:
> Hello,
>
> I have an HTML markup page which has <input type="text" class="date"
> wicket:id="dateValue" ONCHANGE="alert('input.onchange called')"/>
> element. When the value in this field is set programmatically with
> jQuery, e.g. $("input").val("new value") the "input.onchange called"
> alert message pops up correctly.
>
> However, when I add new TextField("dateValue").add(new
> OnChangeAjaxBehavior() {..}) in Java the ONCHANGE handler is never
> called when the value of the field changes. (I did decorate the ajax
> call of the behavior to show the alert message.)
>
> Is it possible that Wicket changes the behavior of "change" event when
> input field value is changed programmatically, e.g.
> $("input").val("new value")?
>
> Thanks,
>
> Alec

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

Reply via email to