It looks like WO is not saving errorPage in the page cache when
handleException is called. I thought it did, maybe this is a 5.4
change. I am going to stick this on my To Do stack for now.
Score WebObjects: 1, Chuck: 0
The defect is mine. The correct code is:
if (AjaxUtils.isAjaxRequest(aContext.request())) {
// Create redirect to return to break out of Ajax
AjaxUtils.redirectTo(errorPage);
WOResponse redirect = errorPage.context().response();
// Generate the error page so that it gets into the page cache, don't
do this earlier!
errorPage.generateResponse();
return redirect;
}
Or
if (AjaxUtils.isAjaxRequest(aContext.request())) {
// Create redirect to return to break out of Ajax
AjaxUtils.redirectTo(errorPage);
WOResponse redirect = errorPage.context().response();
// Force errorPage into the page cache, don't do this earlier!
aContext.session().savePage(errorPage);
return redirect;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden