Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 4439 invoked from network); 15 Nov 2005 07:55:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Nov 2005 07:55:33 -0000 Received: (qmail 45174 invoked by uid 500); 15 Nov 2005 07:55:27 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 44896 invoked by uid 500); 15 Nov 2005 07:55:25 -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 44882 invoked by uid 99); 15 Nov 2005 07:55:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2005 23:55:25 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of salvetti.marc@gmail.com designates 66.249.82.205 as permitted sender) Received: from [66.249.82.205] (HELO xproxy.gmail.com) (66.249.82.205) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2005 23:55:15 -0800 Received: by xproxy.gmail.com with SMTP id s18so1616169wxc for ; Mon, 14 Nov 2005 23:55:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BPdvX2DGuQ5usNrtzp4CNJ3W0ajKakYzBtfYM0YPRenIaOIN5nXc6ZI3RFZMpNanvrk+6+WxO203Ftw+wxILSMO832tepWGMYH0nRvOoH26JAaqeC5nd/ZIQEMUwmIfVpfHRzA1CIgK5i/wXt3aYXNwl/vHyCoPa5I4wTOSLXUE= Received: by 10.70.52.8 with SMTP id z8mr2389151wxz; Mon, 14 Nov 2005 23:55:02 -0800 (PST) Received: by 10.70.43.1 with HTTP; Mon, 14 Nov 2005 23:55:02 -0800 (PST) Message-ID: <15786ae80511142355y3f43a5a8g@mail.gmail.com> Date: Tue, 15 Nov 2005 14:55:02 +0700 From: Marc Salvetti To: users@cocoon.apache.org Subject: Re: CForms, databinding and databases In-Reply-To: <4379856A.6040204@apache.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22990_23758001.1132041302527" References: <1f0f45f20511141425g355422ccga2db54e1d60ccbd3@mail.gmail.com> <4379856A.6040204@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_22990_23758001.1132041302527 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > Yes, because I'm using a DB that has, for example, a table called > > telephoneNumber. > > > > How's that a problem? works perfectly! I might be wrong, but if telephoneNumber is a table, i think it should be mapped to a repeater, not to a field. > Now, I suppose is clear where the matter is: I have two widgets for > > each of the telephone number I need (homeNumber abd officeNumber) but > > I cant mach them with the columns Fields name!!! > > > > How to solve it? Does anybody know? > > > Why do you need 2 widgets if you have only 1 field in your table ? Can't you make a conditional validation based on the value of your idType widget ? Marc ------=_Part_22990_23758001.1132041302527 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

 

&= gt; Yes, because I'm using a DB that has, for example, a table called
&g= t; telephoneNumber.
>

How's that a problem? <fd:field id=3D"telephoneNumb= er"> works perfectly!

I might be wrong, but if telephoneNumber is a table, i think it should be m= apped to a repeater, not to a field.

<snip/>
 

> Now, I suppose is clear where the matter is: I have= two widgets for
> each of the telephone number I need (homeNumber abd officeNumber) = but
> I cant mach them with the columns Fields name!!!
>
>= ; How to solve it? Does anybody know?
>
Why do = you need 2 widgets if you have only 1 field in your table ?
Can't you make a conditional validation based on the value of your idType w= idget ?

Marc
------=_Part_22990_23758001.1132041302527--