Re: Session creation with Main component
David LeBer <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On 27-Mar-08, at 5:19 PM, Lon Varscsak wrote: > Is there a way to prevent Session creation when displaying the > "Main" component? > > Thanks, Watch my second screencast :-) <http://davidleber.net/?p=304> Short form: 1. Change the default request handler to the DirectAction request handler in the constructor of you Application. String directActionRequestHandlerKey = this.directActionRequestHandlerKey(); WORequestHandler directActionRequestHandler = this.requestHandlerForKey(directActionRequestHandlerKey); this.setDefaultRequestHandler(directActionRequestHandler); 2. Don't use any dynamic element that will create a session in your Main.wo. ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org