On 26.05.2004 22:06, Mark H wrote:

Can anybody tell me how I would add a global validation message to
a form (cocoon forms) in version 2.1.5?

Basically what I'm looking for is after some custom validation to be
able to add a validation message like "your login details are
incorrect" to a form rather than a widget. I've looked through the
javadocs but I can't find anything.

There is a template for fi:messages and one for fi:validation-errors in the stylesheet:
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/forms/samples/resources/forms-field-styling.xsl?annotate=1.8#466


From the semantical POV the second would probably apply better, but I do not really know how it goes into the form. Just a ft:validation-errors in the template?

The first on has its counterpart in the form definition and is itself a widget: http://cocoon.apache.org/2.1/userdocs/forms/widget_messages.html (nearly no docu available).

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to