Hi Timo

It was a bug in rc 1 I think, was fixed rc2 as I remember.

Timo Rantalaiho wrote:
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


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to