From dev-return-83259-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Thu Jan 05 10:26:17 2006 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 71783 invoked from network); 5 Jan 2006 10:26:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jan 2006 10:26:15 -0000 Received: (qmail 48390 invoked by uid 500); 5 Jan 2006 10:26:12 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 48332 invoked by uid 500); 5 Jan 2006 10:26:12 -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 48321 invoked by uid 99); 5 Jan 2006 10:26:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2006 02:26:12 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2006 02:26:11 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 924F633BFA for ; Thu, 5 Jan 2006 11:26:00 +0100 (CET) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05519-08 for ; Thu, 5 Jan 2006 11:25:57 +0100 (CET) Received: from [10.0.0.27] (poukram.anyware [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id 2103E33BFB for ; Thu, 5 Jan 2006 11:25:57 +0100 (CET) Message-ID: <43BCF439.4090309@apache.org> Date: Thu, 05 Jan 2006 11:26:01 +0100 From: Sylvain Wallez User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [CForms] Move to postion References: <1136455874.8337.24.camel@localhost> In-Reply-To: <1136455874.8337.24.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thorsten Scherler wrote: > Hi all, > > I would like to implement a row action "move-to-position". > > We have already move-up and move-down, but I would like to move the row > to an user specific position. You have an input box ("new-position") for > each row where you define the new position for the row. > From a usability point of view, this looks a bit weird... And as we speak, I'm working on drag'n drop reordering of repeater rows. Using DnD in tables is quirky (I understand now why Dojo and Scriptaculous demos are all list-based) but I'm progressing. > I defined a new action "MoveToPositionDefinition{}" in the > RowActionDefinition based on "MoveUpDefinition{}" and my corresponding > form stuff. > > Now my question is the following: > What is the best way to get the value of the "new-position" box in the > definition? > I'm more and more thinking that a repeater needs to have child widgets that are not in rows, i.e. a repeater is a container for rows (which are themselves containers) _and_ other widgets, such as repeater actions. Also, I think the selection must be a feature of the repeater, rather than through a boolean field that has to be manually added as of today. That would allow to define at the repeater level if selection is allowed, and if it single or multiple. Also that would allow to have repeater.getSelectedRows(). WDYT? Sylvain -- Sylvain Wallez Anyware Technologies http://bluxte.net http://www.anyware-tech.com Apache Software Foundation Member Research & Technology Director