This happens so often that someone (hint hint) should add a suggestion that
Tapestry check (it can check to see that the engine or requestCycle property
is null, which implies that AbstractPage.detach() was invoked at some
point).

----- Original Message -----
From: "Adam Greene" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 6:27 PM
Subject: Fw: [Tapestry-developer] What Am I Doing Wrong??


> 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
> _______________________________________________
> 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
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to