300301302303304305306307308309310
// if keepOnValidate is true and form was validated once and form was not validated // in this request if (form != null) { FormInfo formInfo = form.getforminfo(); if (formInfo.isValidated() && formInfo.keepOnValidate() && !form.wasValidatedInThisRequest()) { form.validate(); } } } if (status._ajax) {
237238239240241242243244245246247
} TMLForm form = params.getForm(); if (form != null) { // validate form if (!form.validate()) { form.gettargetcontext().addwarning("Form validation during storeindocument() failed. Formdata not saved.", false); event.cancel("Form validation failed"); } }
284285286287288289290291292293294
} TMLForm form = params.getForm(); if (form != null) { // validate form if (!form.validate()) { form.gettargetcontext().addwarning("Form validation during storeindocument() failed. Formdata not saved.", false); event.cancel("Form validation failed"); return; }