I think one of the Davids (LB) covered this in an exciting dramatic screen cast 
: 

http://wocommunity.org/webobjects_screencasts.html

Look for WOLips and Wonder tutorial part 1 and or part 2.


On Mar 12, 2013, at 1:33 PM, Roger Perryman wrote:

> I am creating a Login page and I don't want it to create a new Session until 
> after the page is submitted. Loading the Login page creates a new session. 
> Initially, I had a few elements that had session references but I corrected 
> those. I am still getting a session created. I've traced it down to the 
> ERXWOForm tag (It does the same thing with WOForm). Removing the tag stops 
> the session from being created. I don't recall this behavior before. I'm 
> hoping it is a simple setting in the properties file.
> 
> I am using WOnder 5.8.1.
> 
> I have stripped it down to the simplest page I can get:
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns = "http://www.w3.org/1999/xhtml";>
>       <head>
>               <meta http-equiv="Content-Type" content="text/html; 
> charset=UTF-8" />
>               <title>Login</title>
>       </head>
>       <body>
>               <webobject name="loginForm">
>                       <!-- Form content removed for testing -->
>               </webobject name="loginForm">
>       </body>
> </html>
> 
> 
> loginForm: ERXWOForm
> {
>       id = "loginForm";
>       multipleSubmit = true;  // I've tried both true and false
> }
> 
> I believe I have done all of the requisite steps:
> 
> 
> In Application.java: 
> 
>       public Application()
>       {
>               super();
>               setDefaultRequestHandler( requestHandlerForKey( 
> directActionRequestHandlerKey() ) );
>       } 
> 
> 
> In DirectAction.java:
> 
>       public WOActionResults defaultAction()
>       {
>               return pageWithName( Login.class );
>       }
> 
> In Session.java: (not required but helpful)
> 
>       public Session()
>       {
>               super();
>               log.info( "Session Created: " + sessionID());
>       }
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/gsbrown%40umich.edu
> 
> This email sent to [email protected]


Greg Brown
[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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to