Hi,

I have a need where I need to cancel out of a small editing
section/component inside a form that contains other tapestry
components. I want the cancel to forget all the changes that I made in
that component and revert back to their previous values. Currently, I
have an ImageSubmit mapped to an onCancel listener which puts the
component out of edit mode. But, since the form components (TextField,
PropertySelection, Checkbox, etc.) are all mapped to back-end objects,
the changed data is submitted back and available in the objects
regardless of the cancel action. I understand why this is happening -
because of the rewind process which transfers the form values into the
back-end bound objects.

Question:
Is there a way for me to stop this binding from happening during the
rewind process?

Essentially, I want the cancel button to behave like the form's reset
button, but I don't want to reset the entire form, since there are
other components in the form that I don't want to reset. Is it
possible to prevent the rewind process from happening for an
individual component, or get access to the previous values so that I
can set them back in the onCancel handler?

Thanks,
-SG

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to