Hi everyone!
I'm sorry, I'm looking for a little clue..
I have this simple testcase:

public void testForm(){
        WicketTester tester = new WicketTester();
        tester.startPage(MyPage.class );
        tester.assertNoErrorMessage();
}

And this simple page:

public class MyPage extends WebPage {
        private String testParam;
        
        public KISSPage(PageParameters params) {
                testParam = params.getString("testParam");
        }
}

When I run the testcase, it throws the exception
"Can't instantiate page using constructor public 
test.MyPage(wicket.PageParameters) and argument "

I guess this is because MyPage is without a default constructor, so I was 
wondering if there's a way to specify the required PageParameters.. I tried 
Google and "Pro Wicket" but no luck :(
I'm using Wicket 1.2.6

Many thanks in advance!


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to