Details
Description
An image button cannot refresh the form because the submitmode is resetted before the form gets actually submitted.
As a solution it is suggested to change form.refresh to the following form. So only after an async commit the state of the form is resetted:
tapestry.form.refresh = function(form, submitName, parms) {
form = dojo.byId(form);
if (!form)
var formName = form.getAttribute("id");
var validateState = tapestry.form.forms[formName].validateForm;
tapestry.form.setFormValidating(formName, false);
var previous = form.submitmode.value;
form.submitmode.value = "refresh";
if (parms && !dj_undef("async", parms) && parms.async)
else
{ this.submit(form, submitName, parms); }
};