You can put fd:validation in you form. For example, start you fd:form with
fd:form id=data
xmlns:fd=http://apache.org/cocoon/forms/1.0#definition;
xmlns:i18n=http://apache.org/cocoon/i18n/2.1;
fd:validation
fd:javascript
return messageValidator(widget);
Thanks to the responses, that's what I needed!
Dustin N. Jenkins wrote:
Does anyone have experience writing Custom Form Validators? We need a
way of accessing our Spring Service Layer from one of our Cocoon
Custom Validators, but the Validator doesn't seem to have access to
the HTTP
Dustin N. Jenkins wrote:
Does anyone have experience writing Custom Form Validators? We need a
way of accessing our Spring Service Layer from one of our Cocoon
Custom Validators, but the Validator doesn't seem to have access to
the HTTP Request or Session or anything else that's exterior to