A method and mechanism for enforcing a one-submission-only policy for a
graphical button is provided. The method provides a button object defined
to be enabled for only one submission action upon the button object. When
a first submission action upon the button object is detected, the action
associated with the button object is executed. When another submission
action upon the button object is detected, the other submission action is
discarded without executing the associated action. Subsequent submission
actions are similarly ignored until the button object is re-instantiated
to restore its functionality. In this manner, the one-submission-only
behavior is embedded into the button object itself, without reliance on
external mechanisms.