Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7902810A02 for ; Wed, 4 Dec 2013 17:48:23 +0000 (UTC) Received: (qmail 30581 invoked by uid 500); 4 Dec 2013 17:48:21 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 30448 invoked by uid 500); 4 Dec 2013 17:48:15 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 30439 invoked by uid 99); 4 Dec 2013 17:48:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 17:48:13 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gelo1234@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 17:48:07 +0000 Received: by mail-ob0-f175.google.com with SMTP id uz6so16389230obc.20 for ; Wed, 04 Dec 2013 09:47:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Gtm1P11xDk6PfzszOPpK1J1oRzCg/l1q71HGzoiRAqo=; b=tBhIA+74cprDS8HeI+bytGwpX0LO3jruKZnqsq9aRC4fQKoCcRg0MCPxA/Gi4gDup9 ltqK5APWTMP69fjUuLpv3iVSZryvty6cTmytvQttqf48l1m+s90iOdVFdlN1bpjJpcnR VuQC3AkOsV81Fcq+jDKl2CLEe0QrRei3A37I3234/BQbSvmRfZ92cNNlZyfg1N7e+KJL ou1TwcXKxVHuURIK6WiUGfVOZ79sc0nYU1jK8dVZU3hxG/9Cd64TMSPEWEyHF9TwD357 pOMp4W31NOfIQyTtw9A4FRzWQrXY46qzEH/sKwxCISyF2hT8q0UvmIiK1uRqp/62jsK5 GBhg== MIME-Version: 1.0 X-Received: by 10.60.47.7 with SMTP id z7mr7364922oem.57.1386179266020; Wed, 04 Dec 2013 09:47:46 -0800 (PST) Received: by 10.76.97.193 with HTTP; Wed, 4 Dec 2013 09:47:45 -0800 (PST) In-Reply-To: <38DC0D5F-BD00-4221-B5D1-ACAFFCCABFB6@wro.vectranet.pl> References: <38DC0D5F-BD00-4221-B5D1-ACAFFCCABFB6@wro.vectranet.pl> Date: Wed, 4 Dec 2013 18:47:45 +0100 Message-ID: Subject: Re: CForms validation in Cocoon-2.1.12 From: gelo1234 To: Cocoon Users Content-Type: multipart/alternative; boundary=001a11c20e58bf0c1d04ecb902c9 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c20e58bf0c1d04ecb902c9 Content-Type: text/plain; charset=ISO-8859-1 Hello Barbara, My pure guess: the problem might be with different Dojo version. Did you check that there is exactly the same Dojo Toolkit between 2.1.11 and 2.1.12 ? When this is not the case, the next possible cause of error might be generating unnecessary header within your XML data (in Ajax request?) Greetings, Greg 2013/12/4 Barbara Slupik > Hello > > I am trying to upgrade from Cocoon-2.1.11 to Cocoon 2.1.12. > > I have a problem with CForms validation - the ! error icon > validation-message.gif is not displayed. Dojo debug message is: > > DEBUG: dojo.widget.Parse: error: [Exception... "Node cannot be inserted at > the specified point in the hierarchy" code: "3" nsresult: "0x80530003 > (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)" location: " > http://172.16.1.5/branch/_cocoon/resources/dojo/dojo.js Line: 173"] > > My form definition: > > > > if (my condition) { > widget.setValidationError(new Packages.org.apache.cocoon. > forms.validation.ValidationError("my error message",[],[true])); > return false; > } > return true; > > > > > My sitemap: > ... > > > > > > > value="{session-attr:locale}"/> > > value="{request:contextPath}/_cocoon/resources"/> > > > > > > > > > > ... > > > > > > The same thing works in Cocoon-2.1.11. Changing default transformer to > xslt does not make any difference. > > Does anyone know what is wrong with it and how to fix it? > > Thanks > > Barbara > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > --001a11c20e58bf0c1d04ecb902c9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello Barbara,

My pure guess: the problem= might be with different Dojo version. Did you check that there is exactly = the same Dojo Toolkit between 2.1.11 and 2.1.12 ?
When this is not= the case, the next possible cause of error might be generating unnecessary= <?xml ... version=3D...> header within your XML data (in Ajax reques= t?)


Greetings,
Greg




2013/12/4 Barbara Slupik <barbara_slupik@wro.vectranet= .pl>
Hello

I am trying to upgrade from Cocoon-2.1.11 to Cocoon 2.1.12.

I have a problem with CForms validation - the ! error icon validation-messa= ge.gif is not displayed. Dojo debug message is:

DEBUG: dojo.widget.Parse: error: [Exception... "Node cannot be inserte= d at the specified point in the hierarchy" code: "3" nsresul= t: "0x80530003 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)" locat= ion: "http://172.16.1.5/branch/_cocoon/resources/doj= o/dojo.js Line: 173"]

My form definition:
=A0 =A0 =A0 =A0 <fd:field ...>
=A0 =A0 =A0 =A0 =A0 <fd:validation>
=A0 =A0 =A0 =A0 =A0 =A0 <fd:javascript>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 if (my condition) {
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 widget.setValidationError(new Packages.org.= apache.cocoon.forms.validation.ValidationError("my error= message",[],[true]));
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return false;
=A0 =A0 =A0 =A0 =A0 =A0 =A0 }
=A0 =A0 =A0 =A0 =A0 =A0 =A0 return true;
=A0 =A0 =A0 =A0 =A0 =A0 </fd:javascript>
=A0 =A0 =A0 =A0 =A0 </fd:validation>
=A0 =A0 =A0 =A0 </fd:field>

My sitemap:
=A0 =A0 =A0 <map:transformers default=3D"xsltc">...</map= :transformers>

=A0 =A0 =A0 <map:match pattern=3D"*-display">
=A0 =A0 =A0 =A0 <map:generate type=3D"jx" src=3D"forms/{1= }_tmpl.xml">
=A0 =A0 =A0 =A0 =A0 <map:parameter name=3D"locale" value=3D&qu= ot;{session-attr:locale}"/>
=A0 =A0 =A0 =A0 </map:generate>
=A0 =A0 =A0 =A0 <map:transform type=3D"browser-update"/> =A0 =A0 =A0 =A0 <map:transform type=3D"i18n"><map:parame= ter name=3D"locale" value=3D"{session-attr:locale}"/= ></map:transform>
=A0 =A0 =A0 =A0 <map:transform type=3D"xslt" src=3D"style= sheets/forms-styling.xsl">
=A0 =A0 =A0 =A0 =A0 <map:parameter name=3D"resources-uri" valu= e=3D"{request:contextPath}/_cocoon/resources"/>
=A0 =A0 =A0 =A0 =A0 <map:parameter name=3D"dojo-locale" value= =3D"{session-attr:locale}"/>
=A0 =A0 =A0 =A0 =A0 <map:parameter name=3D"dojo-debug" value= =3D"true"/>
=A0 =A0 =A0 =A0 </map:transform>
=A0 =A0 =A0 =A0 <map:select type=3D"ajax-request">
=A0 =A0 =A0 =A0 =A0 <map:when test=3D"true">
=A0 =A0 =A0 =A0 =A0 =A0 <map:serialize type=3D"xml"/>
=A0 =A0 =A0 =A0 =A0 </map:when>
=A0 =A0 =A0 =A0 =A0 <map:otherwise>
=A0 =A0 =A0 =A0 =A0 =A0 ...
=A0 =A0 =A0 =A0 =A0 =A0 <map:serialize type=3D"html"/>
=A0 =A0 =A0 =A0 =A0 </map:otherwise>
=A0 =A0 =A0 =A0 </map:select>
=A0 =A0 =A0 </map:match>

The same thing works in Cocoon-2.1.11. Changing default transformer to xslt= does not make any difference.

Does anyone know what is wrong with it and how to fix it?

Thanks

Barbara


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


--001a11c20e58bf0c1d04ecb902c9--