FYI, don't forget to handle Ajax requests against a session that has timed out .... if you don't you get a whole "YourSessionTimedOut" page inside an AjaxUpdateContainer....... this is unaltered copy/paste form my generic ERXApplication subclass:

        @Override
public WOResponse handleSessionRestorationErrorInContext(WOContext context) { String page = ERXProperties.stringForKey("app.sessionTimeoutPageName");
                if (page == null) {
                        return 
super.handlePageRestorationErrorInContext(context);
                } else {
                        if (AjaxUtils.isAjaxRequest(context.request())) {
                                WOResponse response = 
createResponseInContext(context);
String defaultUrl = ERXWOContext.directActionUrl(context, WKWODirectAction.class.getSimpleName() + "/sessionExpired", null,
                                                                false);
response.appendContentString("<script>document.location.href='" + defaultUrl + "';</script>");
                                return response;
                        } else {
                                return pageWithName(page, 
context).generateResponse();
                        }
                }
        }







On Oct 19, 2009, at 12:59 PM, Joe Little wrote:

Wow. Nice concise article. Never saw that before, and its definitely a
handy reference for the usual issues one faces.

On Sat, Oct 17, 2009 at 4:20 PM, Andrew Lindesay <[email protected]> wrote:
Hi Don;

You can override;

       WOApplication.handleSessionRestorationErrorInContext(..)

This returns a WOResponse. You can nominate a component there, generate its
response and return it.

A long time ago, I did a brief article for this on STEPWISE;


 
http://homepage.mac.com/andrewlindesay/le/articles/wo_errorreporting_article.pdf

Regards;

I have looked through all the documentation I can find, but I cannot find information on replacing the generic Web Objects Session Timeout message. I
checked in WOnder as well, hoping there was some information there.
What framework do these items live in? Is there a way to override the
timeout component that gets displayed?

___
Andrew Lindesay
www.lindesay.co.nz

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jmlittle%40gmail.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to