Vadim Gritsenko dijo:
> Antonio Gallardo wrote:
>
>>Sylvain Wallez dijo:
>>
>>
>>>Tim Larson wrote:
>>>
>>>
>>>>On a related topic, other than because of history, why is "required"
>>>>an attribute of the widget rather than an attribute of the validation
>>>>element?  Conceptually, "required" is part of a form's validation
>>>> logic.
>>>>
>>>>
>>
>>
>>
>>>True. But being required produces a distinguishing display that is not
>>>possible if only represented by a validator.
>>>
>>>
>>
>>I would add:
>>
>>We can note 2 levels of validations: form level and widget level.
>
> Actually, this is even better idea. Can we have form level validators?

Yes, already have one. See:

http://archives.real-time.com/pipermail/cocoon-devel/2004-January/025750.html
Errata: Line:

"function ValidarCrearPlan(form) {"

must be read

"function ValidarCreatePlan(form) {"

>
>
> PS Antonio, can you attach not a Javascript, but custom Java validator
> to the form?

I think this is posible, by calling a java function inside of a javascript
function.

I don't tested the "direct" plug of a Java function as you suggested, but
assuming how javascript "call" the function, I don't see nothing that
would prevent to call a direct java code.

Anyway this is an interesting test to be done. :-D

Best Regards,

Antonio Gallardo

>
> Vadim
>
>

Reply via email to