Hi Vineet,

thanks for the reply. The line 
"tester.getServletRequest().setParameter("myParam", "testParam");"
But now Im breaking my head with the next issue. If you look at my first post, 
Im trying to do a test where a second page is rendered after a submit on an 
AjaxButton. The test code looks like this:

1. FirstPage page = (FirstPage) tester.startPage(FirstPage.class, 
pageParameters);
2. tester.assertRenderedPage(FirstPage.class);
3. page.getActionForm().setType(1); // where actionForm is a property/attribute 
of FirstPage.
4. FormTester formTester = tester.newFormTester("myForm");
5. tester.getServletRequest().setParameter("myParam", "testParam");
6. tester.executeAjaxEvent("myForm:myAjaxButton", "onclick");
7. tester.assertRenderedPage(SecondPage.class); 

The the test fails within the "onSubmit(AjaxRequestTarget target, Form<?> 
form)" saying that the attribute/property actionForm is null...
Obviously the second (Ajax-) request is not shipped with the attribute/property 
values of his containing panel. Is this correct? Who can help me out here?

Regards,
Yusuf

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

Reply via email to