Re: [cforms] fi:validation-errors in AJAX mode (was: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl)

2005-08-02 Thread Ugo Cei
Il giorno 01/ago/05, alle 22:37, Jason Johnston ha scritto: We create a new template element, ft:validation-errors /. When this element is encountered by FormsTemplateTransformer (or the jx macros), the widget tree is walked and each widget is checked for a validation error. If one is present

Re: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl

2005-08-02 Thread Sylvain Wallez
Jason Johnston wrote: On Mon, 2005-08-01 at 16:38 +0200, Sylvain Wallez wrote: ? The fi:validation-errors element is described here: http://cocoon.apache.org/2.1/userdocs/forms/xslt.html#fi%3Avalidation- errors Yes, sure. Where I'm lost is about knowing *what* produces this

Re: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl

2005-08-01 Thread Sylvain Wallez
[EMAIL PROTECTED] wrote: Author: ugo Date: Sat Jul 30 04:01:10 2005 New Revision: 226493 URL: http://svn.apache.org/viewcvs?rev=226493view=rev Log: Don't output div if there are no errors and give it a class attribute Ugo, Tags with an @id is an essential piece of the Ajax stuff, which

Re: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl

2005-08-01 Thread Ugo Cei
Il giorno 01/ago/05, alle 15:24, Sylvain Wallez ha scritto: Tags with an @id is an essential piece of the Ajax stuff, which is based on partial updates of page areas found by their id. Your update removes the @id on the enclosing tag, and removes the placeholder that is necessary when no

Re: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl

2005-08-01 Thread Sylvain Wallez
Ugo Cei wrote: Il giorno 01/ago/05, alle 15:24, Sylvain Wallez ha scritto: Tags with an @id is an essential piece of the Ajax stuff, which is based on partial updates of page areas found by their id. Your update removes the @id on the enclosing tag, and removes the placeholder that is

Re: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl

2005-08-01 Thread Ugo Cei
Il giorno 01/ago/05, alle 15:57, Sylvain Wallez ha scritto: If I'm not mistaken, that instruction copied the id attribute of the fi:validation-errors element, but I've never put an id attribute there. Is it necessary to set an id to every fi:validation-errors element in order for it to

Re: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl

2005-08-01 Thread Sylvain Wallez
Ugo Cei wrote: Il giorno 01/ago/05, alle 15:57, Sylvain Wallez ha scritto: If I'm not mistaken, that instruction copied the id attribute of the fi:validation-errors element, but I've never put an id attribute there. Is it necessary to set an id to every fi:validation-errors element in

Re: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl

2005-08-01 Thread Ugo Cei
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

Re: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl

2005-08-01 Thread Jason Johnston
On Mon, 2005-08-01 at 16:38 +0200, Sylvain Wallez wrote: ? The fi:validation-errors element is described here: http://cocoon.apache.org/2.1/userdocs/forms/xslt.html#fi%3Avalidation- errors Yes, sure. Where I'm lost is about knowing *what* produces this fi:validation-errors element

[cforms] fi:validation-errors in AJAX mode (was: svn commit: r226493 - /cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl)

2005-08-01 Thread Jason Johnston
On Mon, 2005-08-01 at 13:19 -0600, Jason Johnston wrote: You are correct, it is not produced by anything besides the template author. It's simply a styling hint, much like fi:group, which is handled entirely by the XSLT. Unfortunately this means that it is never included in the AJAX