Fw: What Am I Doing Wrong??
"Adam Greene" <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <008e01c2966c$7dacb4a0$6b8fb3cf@adam> |
Stupid Stupid Stupid. Thanks for the help guys. I looked at the code again and see how it works now. > ----- Original Message ----- > From: "Craig Miskell" <[email protected]> > To: <[email protected]> > Sent: Wednesday, November 27, 2002 7:15 PM > Subject: Re: [Tapestry-developer] What Am I Doing Wrong?? > > > > Easy one... seen it myself not long ago. In Login.detach, you need to > > call super.detach(), which closes off the page recorder. Otherwise the > > pagerecorder is still 'open' when the page gets submitted again. Bad > > juju ensues. > > > > Craig > > On Thu, 2002-11-28 at 11:53, Adam Greene wrote: > > > I am trying to create a SecurePage class that will protect parts of my > site and in this class I have the following code to redirect to the Login > page: > > > > > > ILogInPage page = (ILogInPage) cycle.getPage(visit.getLogInPage()); > > > > > > page.setReturnURL(makeURL(request)); > > > > > throw new PageRedirectException(page); > > > > > > There is a function called makeURL that sets the full URL to return to > (so that it gets all parameters). > > > > > > Within the Login page I have the following: > > > > > > public void setReturnURL(String URL) { > > > > > > returnURL = URL; > > > > > > if (!getRequestCycle().isRewinding()) { > > > > > > fireObservedChange("returnURL", returnURL); > > > > > > } > > > > > > } > > > > > > Now, the problem is that on the Login page is a form that takes the user > name and password and if they enter the wrong password the first time, it > simply redisplays the page, if they then try to re-enter the user name and > password, and resubmit. I get this error: > > > > > > Page recorder for page Login is locked after a commit(), but received a > change to property returnURL of component Login. > > > > > > Any ideas?? The source code is attached. > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Tapestry-developer mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en