Well, I have at many places in my application. Those errors disappear when I replace, e.g.,

// NullPointerException in edit
setResponsePage(new CategoriesPage());

with

Page categoriesPage = new CategoriesPage();
categoriesPage.onRedirect();

Dzenan

\
You shouldn't call onRedirecT() because that is a interface method page has that can be triggerd by a interface call (IRedirectListener)

more strange is:

this is onRedirect:

public final void onRedirect()
   {
       final RequestCycle cycle = getRequestCycle();

       // Do not need to update cluster when redirecting to a page
       cycle.setUpdateCluster(false);

       // This method is used when redirecting to a page
       cycle.setResponsePage(this);
   }


this is setResponsePage:

getRequestCycle().setResponsePage(page);

as you can see
there isn't much difference!!!
Both the getRequestCycle() is go and setResponse is called.

So you should really check out what is now exactly null..

johan



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to