Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 91785 invoked from network); 19 Jan 2006 09:08:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jan 2006 09:08:32 -0000 Received: (qmail 85504 invoked by uid 500); 19 Jan 2006 09:08:26 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 85488 invoked by uid 500); 19 Jan 2006 09:08:26 -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 85476 invoked by uid 99); 19 Jan 2006 09:08:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 01:08:26 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [130.183.7.21] (HELO post.rzg.mpg.de) (130.183.7.21) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 01:08:25 -0800 Received: from [130.183.2.16] (tkspc.rzg.mpg.de [130.183.2.16]) by post.rzg.mpg.de (8.9.2/8.9.2) with ESMTP id KAA3027054; Thu, 19 Jan 2006 10:08:03 +0100 Message-ID: <43CF56F3.4010209@rzg.mpg.de> Date: Thu, 19 Jan 2006 10:08:03 +0100 From: Thomas Soddemann User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: sorting of repeater rows References: In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Gunter, have a look at http://rialto.application-servers.com/ They have a lot of stuff, you may be able to use directly. In principle, if you have your repeater rows displayed as table rows, you just need to find the table (e.g. by searching for its id). Then you make a list of the keys you want to sort with references to the according table rows, use the javascript sort to sort the list and after that you reorder the rows by using the row references. Cheers, Thomas Gunter D'Hondt wrote: >Thomas, > >If you can tell me how I can sort form elements (input-fields) using js >then that would be great? >using divs? > >thnx, >Gunter > > > > > > >Thomas Soddemann >19/01/2006 09:48 >Please respond to >users@cocoon.apache.org > > >To >users@cocoon.apache.org >cc > >Subject >Re: sorting of repeater rows > > > > > > >Hi Gunter, > >what about sorting the list part form with client side javascript? > >Thomas > >Gunter D'Hondt wrote: > > > >>problem is that my data is coming from a webservice which gives me an >>unsorted list; so the only thing that I might think of is transforming >> >> >the > > >>unsorted list first using xsl; or building (in my java flow code) a >>collection of the repeater data, sort it and then refill the repeater >>widget >> >>but in my opinion the sorted way of a repeater list is a matter of the >>view-side (MVC) so I'd like to do it somewhere in my form template >> >>Gunter >> >> >> >> >> >> >> > > > > -- -------------------------------------------------- Dr. Thomas Soddemann | Boltzmannstrasse 2 Projects Engineer | 85748 Garching Rechenzentrum der MPG | Germany am MPI fuer Plasmaphysik | --------------------------------------------------- phone: +49 89 3299 2694 | fax: +49 89 3299 1301 --------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org