and that one can only be null if there is really no request!
You seem to do something with pages when there is no request happening
for it.
johan
Dzenan Ridjanovic wrote:
Johan,
The null pointer exception happens exactly here:
Caused by: java.lang.NullPointerException
at wicket.Component.setResponsePage(Component.java:1214)
at org.wicket.urls.app.view.url.UrlsPage.update(UrlsPage.java:99)
in wicket.Component.setResponsePage. That means in
getRequestCycle().setResponsePage(page);
That means that
getRequestCycle()
produces the null pointer exception.
It seems to me that this is deep in Wicket logic outside of my
competency.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user