The form tag automagically renders a javascript handler for the onSubmit event [1, line 388]. It uses the same snippet that's declared for onclick handler in MarkupConstants.WAIT_FOR_PAGE <http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/MarkupConstants.html> [2] described in [3].
How could I contribute my own javascript snippet to onSubmit attribute of forms? How can I override this setting? [1] http://tapestry.apache.org/current/apidocs/src-html/org/apache/tapestry5/corelib/components/Form.html [2] http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/MarkupConstants.html [3] http://tapestry.apache.org/javascript.html