finally got around to installing it - looks good!On 10/27/05, Sylvain Wallez [EMAIL PROTECTED] wrote:
Bruno Dumon wrote: In the _javascript_ validation (or in any validation for that matter), if
you return false, you should also set a validation error on the widget to which the validator belongs,
On Wed, 2005-10-26 at 13:31 -0400, Ben Anderson wrote:
Hi,
So I was trying to put javascript validation right into my form
definition, but ran into some funkiness (at least from my
perspective).
First of all I realized that putting the javascript in a field doesn't
invalidate the form:
Bruno Dumon wrote:
In the javascript validation (or in any validation for that matter), if
you return false, you should also set a validation error on the widget
to which the validator belongs, or a child/descendant widget of that
widget (e.g. in case the validator belongs to a form or
Sylvain Wallez wrote:
Bruno Dumon wrote:
In the javascript validation (or in any validation for that matter), if
you return false, you should also set a validation error on the widget
to which the validator belongs, or a child/descendant widget of that
widget (e.g. in case the validator
Upayavira wrote:
Sylvain,
I happened to be doing something similar at the time, so I looked at the
code. Looking at:
http://svn.apache.org/repos/asf/cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/validation/impl/JavaScriptValidator.java
Method validate(Widget widget), I notice:
Hi,
So I was trying to put _javascript_ validation right into my form
definition, but ran into some funkiness (at least from my perspective).
First of all I realized that putting the _javascript_ in a field doesn't invalidate the form:
Here's my form definition:
fd:validation
fd:_javascript_