Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 90449 invoked from network); 25 Jul 2006 01:16:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2006 01:16:01 -0000 Received: (qmail 92069 invoked by uid 500); 25 Jul 2006 01:15:57 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 92046 invoked by uid 500); 25 Jul 2006 01:15:57 -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 92035 invoked by uid 99); 25 Jul 2006 01:15:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 18:15:57 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [69.93.53.226] (HELO admin.mesanetworks.net) (69.93.53.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2006 18:15:57 -0700 Received: from [65.175.0.109] (helo=[192.168.0.101]) by admin.mesanetworks.net with esmtp (Exim 4.52) id 1G5BWI-000609-Fd for users@cocoon.apache.org; Mon, 24 Jul 2006 19:15:34 -0600 Message-ID: <44C570AE.5090009@lojjic.net> Date: Mon, 24 Jul 2006 19:15:26 -0600 From: Jason Johnston User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: checkbox widget with datatype vector References: <44C3DD23.6080505@lojjic.net> <44C3EBC7.9020906@lojjic.net> <44C4CEE5.1050703@lojjic.net> <44C56E96.3080102@lojjic.net> In-Reply-To: <44C56E96.3080102@lojjic.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-cPanel-MailScanner-Information: Please contact the ISP for more information X-cPanel-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-cPanel-MailScanner-SpamCheck: X-cPanel-MailScanner-From: cocoon@lojjic.net X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - admin.mesanetworks.net X-AntiAbuse: Original Domain - cocoon.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - lojjic.net X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Jason Johnston wrote: > var itemsToDelete = new java.util.Vector(); > var repeater = form.lookupWidget("items"); > for(var i=0; i var row = repeater.getRow(i); > if(row.lookupWidget("delete").value) { //is the booleanfield checked? Small correction... the above line should probably be something more like: if(java.lang.Boolean.TRUE.equals(row.lookupWidget("delete").value)) { Datatype conversion between Java and JS can be tricky at times. ;-) > itemsToDelete.add(row.lookupWidget("id").value); //add the item id > } > } > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org