Re: Backtracked Too far - Hand back last existing Page in place of error page?
Re: Backtracked Too far - Hand back last existing Page in place of error page?
- Subject: Re: Backtracked Too far - Hand back last existing Page in place of error page?
- From: Ute Hoffmann <email@hidden>
- Date: Thu, 14 Sep 2006 16:15:10 +0200
Yes, I know that is the place where i have to hook that in... but how do I get at the right context from the page cache? Do I have to cache the url of the last page somewhere or is there a way to do what I want with what WO provides (i.e. get the last existing Object in the page cache programmatically and hand that back)?
What does it mean in the API:
"page recreation is disabled" Would enable page recreation do what I want by default and if yes, how enable it (and which side effects)?
Any ideas?
Am Donnerstag, 14.09.06 um 16:03 Uhr schrieb Robert Walker:
Take a look at the API document for the following method of WOApplication class:
public WOResponse handlePageRestorationErrorInContext(WOContext aContext)
Maybe you can do what you want by overriding this method.
On Sep 14, 2006, at 9:56 AM, Ute Hoffmann wrote:
Hallo,
is it possible to do the following:
When the user triggers a backtracked too far exception ask in the error handling for the last existing page in pageCache and hand that page back in place of the error-message/an error-page?
If this is possible... how could one archive this?
Thanks a lot,
Ute
_______________________________________________
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
--
Robert Walker
email@hidden
_______________________________________________
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
_______________________________________________
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