cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <>
Subject Re: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
Date Mon, 01 Aug 2005 14:49:24 GMT
Il giorno 01/ago/05, alle 16:38, Sylvain Wallez ha scritto:

> Yes, sure. Where I'm lost is about knowing *what* produces this  
> fi:validation-errors element (it's not a widget, isn't it?). I never  
> used it, and a quick search did not revealed how it is produced.

It's not produced. You have to put it yourself in your form template,  
if you want to display all your validation errors in a single block. At  
least according to  

And it works as expected, too, in the ajax="false" case. Now, what  
you're telling me is that for it to be correctly show up in the  
ajax="true" case, the resulting HTML element must have an id attribute.  
Then, since the original template did something like:

<xsl:template match="fi_validation-errors">
   <div id="{@id}">

you need to put something like

<fi:validation-errors id="whatever"/>

in the form template. Is that right?


Ugo Cei
Tech Blog:
Open Source Zone:
Wine & Food Blog:

View raw message