Re: (ERX)WOForm creates a new Session
Re: (ERX)WOForm creates a new Session
- Subject: Re: (ERX)WOForm creates a new Session
- From: Ramsey Gurley <email@hidden>
- Date: Tue, 12 Mar 2013 10:42:18 -0700
Hi Roger,
Someone may correct me if I'm wrong, but I think you have to provide an actionClass or directActionName binding on the woform or it will generate a /wo/ url which, being a component action, will generate a session.
Ramsey
On Mar 12, 2013, at 10:33 AM, 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@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