Hi,

here's an example usage:

https://github.com/apache/wicket/blob/master/wicket-core/src/test/java/org/apache/wicket/ajax/form/OnChangeAjaxBehaviorTest.java#L47

Please check what's different in your case.

Have fun
Sven


Am 20.11.2017 um 13:33 schrieb Rob Audenaerde:
Hi all,

I try to test a AjaxLink-based component using:

MyComponent myComponent = new MyComponent("id");
wicketTester.startComponentInPage( myComponent);

MyComponent contains some AjaxLinks, I want to click on them by:

(uses a visitor to find the first child)
AjaxLink on = getFirstChild(myComponent, AjaxLink.class)
executeAjaxEvent( on, "click" );

However, this gives me:

org.apache.wicket.WicketRuntimeException: No Page found for component
[VcAjaxLink [Component id = sortza]]

What is the correct wat to execute ajax behaviors in this approach?

Thanks in advance,
-Rob



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

Reply via email to