You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jason Vasquez <ja...@obiwan.homelinux.org> on 2004/02/23 22:06:55 UTC

Resetting form fields

Hi all,

This is probably a silly question, but I'm having trouble getting a
page to be really "forgotten" that has persistent properties.

I have an "advanced search" style form in which the fields are set
up as persistent properties via the .page.  I'm trying to implement
a button that will reset all the fields to their default values.  The
obvious solution seemed to be just to call the getEngine().forgetPage(..)
methods and re-activate the page via the request cycle, but when I do that,
I get an ApplicationRuntimeException:

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

What is the best way to do such a thing?

Thanks,
Jason