Last Call Comments - xforms:modelDestruct event or equivalent is necesssary

There is a sequence of initialization events defined for the XForms model,
but there is no equivalent event for when the model is destroyed. Very often
form designers have the need to do something when a form is loaded or
initialized and then undo it when the form goes away (e.g. acquire/release a
resource). In the current XForms model there is no way to address this.

I understand that there will be a need to clearly define the behavior of the
initialization events and the destruct event in the context of common web
user actions (e.g. when the user clicks on the 'back' button on the
browser). I think a good model to start from would be that which is used in
HTML for the onload() and onunload() events for the <BODY> element.

In theory it would be possible for users to simulate the behavior of
modelDestruct() by calling a function from the containing document's
onunload() event, but this adds an ugly dependency and prohibits designers
from creating forms as self-contained entities.

Thank you,


Tom Keane
Director, Core Technologies
CARDIFF, Inc.
www.cardiff.com <http://www.cardiff.com> 
tkeane@cardiff.com <mailto:tkeane@cardiff.com> 

Received on Friday, 22 February 2002 20:40:01 UTC