• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(ERX)WOForm creates a new Session
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(ERX)WOForm creates a new Session


  • Subject: (ERX)WOForm creates a new Session
  • From: Roger Perryman <email@hidden>
  • Date: Tue, 12 Mar 2013 13:33:23 -0400

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

  • Follow-Ups:
    • Re: (ERX)WOForm creates a new Session
      • From: Greg Brown <email@hidden>
    • Re: (ERX)WOForm creates a new Session
      • From: Chuck Hill <email@hidden>
    • Re: (ERX)WOForm creates a new Session
      • From: Ramsey Gurley <email@hidden>
  • Prev by Date: Community/WOWODC sponsorship
  • Next by Date: Re: (ERX)WOForm creates a new Session
  • Previous by thread: Re: Community/WOWODC sponsorship
  • Next by thread: Re: (ERX)WOForm creates a new Session
  • Index(es):
    • Date
    • Thread