Re: Personalizing Error Page
Re: Personalizing Error Page
- Subject: Re: Personalizing Error Page
- From: Jonathan Rochkind <email@hidden>
- Date: Mon, 16 Feb 2004 11:05:43 -0600
There's a seperate method to customize the "session has timed out"
page, and to customize the error page. These are two different pages.
So I'm not sure what you're problem is:
1) Maybe your problem is that an error is happening,
handlePageRestorationErrorInContext is being called---but somehow
when you return an instance of the Main page, it results in "session
timed out". If that's happening, I'm not sure what's causing it, or
what to do about it. But first step would be identifying that it's
happening.
2) Maybe your problem is much simpler. An error never occured,
handlePageRestorationErrorInContext was never called, instead the
_original_ problem was truly a 'session timed out' situation. In
which case, over-ride WOApplication.
handleSessionRestorationErrorInContex to provide a custom 'session
timed out' page.
--Jonathan
At 5:50 PM +0100 2/16/04, Dev WO wrote:
Hi All,
I'd like to personalize the error page in a Web App.
I know I have to create a new component, then tell WO to display this
component as the error page.
So I wrote in my Application.java Class:
public WOResponse handlePageRestorationErrorInContext(WOContext
aContext) {
WOComponent nextPage;
nextPage = (Main)pageWithName("Main", aContext);
return nextPage.generateResponse();
}
But it didn't gave me the "Main" component??! it keeps on returning the
regular "your session as timed out"
What did I do wrong?
Thanks
Xavier
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.