On Fri, 14 Dec 2007, Nino Saturnino Martinez Vazquez Wael wrote:
> If I try to execute the event I just get an null pointer exeception like
> this:
> wicketTester.executeAjaxEvent("form:ajaxButton", "onclick");
>
> Should I just check if theres ajax present? And the process the form
> using the formtester?
Hi, are you sure that the path "form:ajaxButton" is correct?
So if you do
AjaxButton button = (AjaxButton)
wicketTester.getComponentFromLastRenederedPage("form:ajaxButton");
Assert.notNull(button);
does it pass?
What is the stack trace? Is request cycle initialized?
Are you sure that "onclick" is the correct event?
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]