Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 24951 invoked from network); 25 Jan 2006 16:38:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jan 2006 16:38:36 -0000 Received: (qmail 30163 invoked by uid 500); 25 Jan 2006 16:38:33 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 30086 invoked by uid 500); 25 Jan 2006 16:38:32 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 30070 invoked by uid 99); 25 Jan 2006 16:38:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2006 08:38:30 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 0029EE0 for ; Wed, 25 Jan 2006 17:38:10 +0100 (CET) Message-ID: <1083954454.1138207089998.JavaMail.jira@ajax.apache.org> Date: Wed, 25 Jan 2006 17:38:09 +0100 (CET) From: "Jean-Baptiste Quenot (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Commented: (COCOON-1609) form binding ambiguity creating new paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1609?page=3Dcomments#acti= on_12363974 ]=20 Jean-Baptiste Quenot commented on COCOON-1609: ---------------------------------------------- You say: =C2=AB The ValueJXPathBinding class calls createPathAndSetValue() = while others expect that the given path does already exist calling getRelat= iveContext() directly. =C2=BB This is a bug, and should be fixed. Could you provide a patch for that? > form binding ambiguity creating new paths > ------------------------------------------ > > Key: COCOON-1609 > URL: http://issues.apache.org/jira/browse/COCOON-1609 > Project: Cocoon > Type: Bug > Components: Blocks: Forms > Versions: 2.2-dev (Current SVN) > Environment: Operating System: other > Platform: Other > Reporter: Stefan Podkowinski > Assignee: Jean-Baptiste Quenot > > The current way cform binding is handled is a bit confusing regarding the > creation of new (jx)path elements. > While fb:value works (to me) as expected, other bindings behave quite dif= ferent. > E.g. the following binding would create the given path if non-existing.= =20 > > Others, such as fb:set-attribute or fb:custom would not and throw an exce= ption > given the path above. This must be due the fact that the doSave() method = of each > binding class is implemented differently. The ValueJXPathBinding class ca= lls > createPathAndSetValue() while others expect that the given path does alre= ady > exist calling getRelativeContext() directly. This behaviour is especially > annoying for fb:custom bindings in my case. > See also: > http://issues.apache.org/bugzilla/show_bug.cgi?id=3D30693 > http://www.mail-archive.com/dev@cocoon.apache.org/msg20645.html > fb:custom exception: > org.apache.commons.jxpath.JXPathException: Cannot create a relative conte= xt for > a non-existent node: /form/test > =09at > org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getRelativeContex= t(JXPathContextReferenceImpl.java:581) > =09at > org.apache.cocoon.forms.binding.CustomJXPathBinding.doSave(CustomJXPathBi= nding.java:83) > =09at > org.apache.cocoon.forms.binding.JXPathBindingBase.saveFormToModel(JXPathB= indingBase.java:192) --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira