You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Manfred Bergmann <mb...@software-by-mabe.com> on 2017/02/17 17:44:48 UTC
Kendo UI - AjaxDropDownList, onChange
Hi.
I've tried to get the AjaxDropDownList under test.
In a test I'm doing:
val formTester = tester.newFormTester("form")
formTester.select("cut:container:data.serviceType", <someservicetype>)
tester.executeAjaxEvent(basePath+":data.serviceType", "change")
but the onSelectionChanged is never triggered in a test.
It works when starting the app in a browser.
How can I make this testable?
Manfred
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Kendo-UI-AjaxDropDownList-onChange-tp4677142.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Kendo UI - AjaxDropDownList, onChange
Posted by Sebastien <se...@gmail.com>.
Hi Manfred,
AjaxDropDownList belongs to the kendoDropDownList widget, which can be
triggered this way:
var dropdownlist = $("#myDDL").data("kendoDropDownList"); // eq. to
KendoUIBehavior.widget(myDDL, DropDownListBehavior.METHOD) in wicket
dropdownlist.trigger("change"); // this will trigger change event
I'm not sure it can be triggered like the regular (on)change event...
Another option, maybe you can execute the OnChangeAjaxBehavior trough
BaseWicketTester#executeBehavior(AbstractAjaxBehavior).
Never tested, so hope this helps :)
Sebastien.
On Fri, Feb 17, 2017 at 6:44 PM, Manfred Bergmann <mb...@software-by-mabe.com>
wrote:
> Hi.
>
> I've tried to get the AjaxDropDownList under test.
> In a test I'm doing:
> val formTester = tester.newFormTester("form")
> formTester.select("cut:container:data.serviceType", <someservicetype>)
> tester.executeAjaxEvent(basePath+":data.serviceType", "change")
>
> but the onSelectionChanged is never triggered in a test.
> It works when starting the app in a browser.
>
> How can I make this testable?
>
>
> Manfred
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Kendo-UI-AjaxDropDownList-onChange-tp4677142.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>