You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eric Everman <ev...@precedadesign.com> on 2005/01/10 19:58:56 UTC

forgetPage() throws exception

Hi-

I have a simple login page containing a form with Name, Password, and a 
Submit button.  Name is persistent as it an ICallback object.  In the 
submit listener I call engine.forgetPage(getPageName()), which throws 
the exception:

Could not forget changes to page Login because the pages recorder has 
uncommitted changes.

This seems like a straight forward task (and its mostly lifted from the 
book).  Any idea what I'm doing wrong here?

Thanks in advance,
Eric Everman


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: forgetPage() throws exception

Posted by Eric Everman <ev...@precedadesign.com>.
Thanks - that was the trick!

Now that the login pages works, on to the next problem (in another 
email).

--ee


On Jan 10, 2005, at 1:14 PM, Howard Lewis Ship wrote:

> Use IRequestCycle.discardPage() instead.
>
>
> On Mon, 10 Jan 2005 12:58:56 -0600, Eric Everman
> <ev...@precedadesign.com> wrote:
>> Hi-
>>
>> I have a simple login page containing a form with Name, Password, and 
>> a
>> Submit button.  Name is persistent as it an ICallback object.  In the
>> submit listener I call engine.forgetPage(getPageName()), which throws
>> the exception:
>>
>> Could not forget changes to page Login because the pages recorder has
>> uncommitted changes.
>>
>> This seems like a straight forward task (and its mostly lifted from 
>> the
>> book).  Any idea what I'm doing wrong here?
>>
>> Thanks in advance,
>> Eric Everman
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>
>
> -- 
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: forgetPage() throws exception

Posted by Howard Lewis Ship <hl...@gmail.com>.
Use IRequestCycle.discardPage() instead.


On Mon, 10 Jan 2005 12:58:56 -0600, Eric Everman
<ev...@precedadesign.com> wrote:
> Hi-
> 
> I have a simple login page containing a form with Name, Password, and a
> Submit button.  Name is persistent as it an ICallback object.  In the
> submit listener I call engine.forgetPage(getPageName()), which throws
> the exception:
> 
> Could not forget changes to page Login because the pages recorder has
> uncommitted changes.
> 
> This seems like a straight forward task (and its mostly lifted from the
> book).  Any idea what I'm doing wrong here?
> 
> Thanks in advance,
> Eric Everman
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org