cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Billard <obill...@jouve.fr>
Subject Re: {Spam?} Newbie Question: Action call within a Flow
Date Tue, 27 Apr 2004 10:23:45 GMT
Ok. Thanks for the explanation !

--
Olivier

Joerg Heinicke wrote:
> On 27.04.2004 08:37, Olivier Billard wrote:
> 
>>>>     form.validator = form2beanValidator;
>>>
>>>
>>> This flowscript specific validator extension will probably be no 
>>> longer supported by default. Custom validators can be added to the 
>>> widgets itself in the next release.
>>
>>
>> Thanks for the tip, Joerg !
>> How whould be those validator ? The ones Sylvain added to every widget ? 
> 
> 
> Yes, those I meant.
> 
>> Are they just classes, or pure javascript ?
> 
> 
> I'm not that perfect in language specific construct, but I think in 
> JavaScript a function becomes an object too. In the way you could do 
> form.validator = aFunction, you can maybe then do it for the widget 
> validators too.
> 
> But what works in every case:
> 
> <fd:field>
>   <fd:label/>
>   <fd:datatype/>
>   <fd:validation>
>     <fd:javascript>
>       //a script that returns true or false
>     </fd:javascript>
>   </fd:validation>
> </fd:field>
> 
> Don't if the following works too:
> 
> <fd:form>
>   <fd:validation>
>     <fd:javascript>
>       //a script that returns true or false
>     </fd:javascript>
>   </fd:validation>
> </fd:form>
> 
> At least the form widget also has the function 
> addValidator(WidgetValidator).
> 
> Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message