cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carmona Perez, David" <DPerez...@fcc.es>
Subject RV: Woody custom validation
Date Fri, 07 Nov 2003 11:37:04 GMT
And also, does anybody know to create a validation error that applies to the full form, not
just a given field.

Thanks in advance for any help.

--------
David

-----Mensaje original-----
De: Carmona Perez, David 
Enviado el: viernes, 07 de noviembre de 2003 11:55
Para: users@cocoon.apache.org
Asunto: RE: Woody custom validation

Bruno,

Please, how can the validator show an error message to the end user?


--------
David

-----Mensaje original-----
De: Bruno Dumon [mailto:bruno@outerthought.org]
Enviado el: jueves, 06 de noviembre de 2003 17:54
Para: users@cocoon.apache.org
Asunto: Re: Woody custom validation

On Thu, 2003-11-06 at 17:19, Carmona Perez, David wrote:
> How can I do in flow script custom validation?, i.e.  validation that
> is very app specific and Woody provided validations aren't enough.
>
> The only solution I see is to make a custom version of woody.js.
> Surely there must be something easier.

See the docs for the showForm function in woody2.js. You can set a
validator property on the form object pointing to a function that
peforms extra validation. This function will be called once the normal
validation succeeded.

--
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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

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

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


Mime
View raw message