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 90D749FF9 for ; Tue, 27 Mar 2012 19:51:41 +0000 (UTC) Received: (qmail 69574 invoked by uid 500); 27 Mar 2012 19:51:41 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 69475 invoked by uid 500); 27 Mar 2012 19:51:40 -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 69465 invoked by uid 99); 27 Mar 2012 19:51:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 19:51:40 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.102.40.136] (HELO saarni.dnainternet.net) (83.102.40.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 19:51:30 +0000 Received: from localhost (localhost [127.0.0.1]) by saarni.dnainternet.net (Postfix) with ESMTP id 20838606E5 for ; Tue, 27 Mar 2012 22:51:09 +0300 (EEST) X-Virus-Scanned: DNA Postiturva at dnainternet.net X-Spam-Score: -1 X-Spam-Level: Received: from saarni.dnainternet.net ([83.102.40.136]) by localhost (saarni.dnainternet.net [127.0.0.1]) (DNA Postiturva, port 10041) with ESMTP id 1hGePhnHI8Zv for ; Tue, 27 Mar 2012 22:51:08 +0300 (EEST) Received: from oliivipuu.dnainternet.net (oliivipuu.dnainternet.net [83.102.40.215]) by saarni.dnainternet.net (Postfix) with ESMTP id DBA26604E4 for ; Tue, 27 Mar 2012 22:51:08 +0300 (EEST) Received: from [127.0.0.1] (88-148-238-111.bb.dnainternet.fi [88.148.238.111]) by oliivipuu.dnainternet.net (Postfix) with ESMTP id 7A9562BAE3 for ; Tue, 27 Mar 2012 22:51:12 +0300 (EEST) Message-ID: <4F721A20.4090901@digikartta.net> Date: Tue, 27 Mar 2012 22:50:56 +0300 From: Mika M Lehtonen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: data binding Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=-1 tagged_above=-9999 required=6 tests=[ALL_TRUSTED=-1] autolearn=disabled Hi, what is the right and the proper way of inserting form data to database table (PostgreSQL)? What makes this more "interesting" is that instead of horizontal data in table, the data is stored in a vertical manner because of the highly dynamic nature of the application and the relation model. That is, my forms are created dynamically based on data in database. In the same way, the values shoud be stored vertically, because the the table structure would otherwise have to vary based on form types and eventually I would have hundreds of different tables. I have done some testing with XSP and ESQL in order to retrieve my forms. That works fine, although if I have understood right, XSPs' aren't recommended to use, am I right? But now I would have to insert form values to another table vertically (different columns for different datatypes). How should I approahce the challenge? Any thoughts? Sorry if I am asking entirely obvious questions. I don't have such a long experience with the Cocoon. Testing things now with the 2.11 and am going to shift to 2.2, even 3.0 some day later or sooner. Also coming more from .NET side.. forgive me.. - mika - --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org