Why feedback panel won't work

2009-12-27 Thread uud ashr
Hi all, Why does wicket panel don't work if I do this: class MyPage extends WebPage { public MyPage() { add(new Link("myLink") { public void onClick() { * info("You just click me");* *setResponsePage(MyAnotherPage.class); // feedback panel wo

Testing AjaxSubmitLink#onSubmit() with WicketTester

2009-12-27 Thread Alec Swan
I have a page with a form and AjaxSubmitLink in the form. I call WicketTester#clickLink(pathToLink, true) to test the code in AjaxSubmitLink#onSubmit(). The call returns with no errors, but AjaxSubmitLink#onSubmit() is never called. Here is a code sample: tester.startPanel(MyPanel.class)