Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 12802 invoked by uid 500); 15 May 2001 01:29:00 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 12790 invoked from network); 15 May 2001 01:28:59 -0000 From: Allan Erskine To: "Cocoon-Dev@Xml.Apache.Org (E-mail)" Subject: [C2] allowing multiple additions with DatabaseAddAction Date: Tue, 15 May 2001 02:29:49 +0100 Message-ID: <007a01c0dcde$8df63ff0$ea4dfea9@spukny> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_007B_01C0DCE6.EFBAA7F0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N ------=_NextPart_000_007B_01C0DCE6.EFBAA7F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I'm using a modified DatabaseAddAction that allows multiple additions for multi-valued parameters. I've found it useful esp for adding multiple entries for lists of checkboxes and multi-line selects. Unfortunately it involves using a modified AbstractDatabaseAction too (not too modified, still back compatible), and the way I've gone about it seems really cludgy. I have the feeling that the current DatabaseAction code wasn't really written with multiple additions in mind. Does anyone else think that being able to add multiple records at a time is useful? And if so, is there a better way of going about it than cludgy hacks to the DatabaseActions? Allan ------=_NextPart_000_007B_01C0DCE6.EFBAA7F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm = using a modified=20 DatabaseAddAction that allows multiple additions for multi-valued = parameters.=20  I've found it useful esp for adding multiple entries for = lists of=20 checkboxes and multi-line selects.
 
Unfortunately=20 it involves using a modified AbstractDatabaseAction too (not too = modified,=20 still back compatible), and the way I've gone about it seems really=20 cludgy.  I have the feeling that the current = DatabaseAction code=20 wasn't really written with multiple additions in = mind.
 
Does = anyone else=20 think that being able to add multiple records at a time is useful?  = And if=20 so, is there a better way of going about it than cludgy hacks to the=20 DatabaseActions?
 
Allan
------=_NextPart_000_007B_01C0DCE6.EFBAA7F0--