Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 758 invoked from network); 28 Jun 2005 14:27:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2005 14:27:10 -0000 Received: (qmail 73670 invoked by uid 500); 28 Jun 2005 14:27:07 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 73497 invoked by uid 500); 28 Jun 2005 14:27:05 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 73484 invoked by uid 99); 28 Jun 2005 14:27:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2005 07:27:05 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of e.medina.m@gmail.com designates 64.233.182.197 as permitted sender) Received: from [64.233.182.197] (HELO nproxy.gmail.com) (64.233.182.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2005 07:27:04 -0700 Received: by nproxy.gmail.com with SMTP id i2so224631nfe for ; Tue, 28 Jun 2005 07:27:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qOB4LEk6p0ngL8JCnX/U3Nw695Wko3HN2Y+wjKltXTagsvGyKQ2uJYnLtEIrPCE2i3gG0UUy5THg3V4VZiAllb0HsWXj//LJALADVw40SSf9oyWEZlCgubOssxItL7Bf25O6GnAPS5kWVAxqwRGg+GTdrm6r+xaPIF20rvMFD2U= Received: by 10.48.144.8 with SMTP id r8mr152301nfd; Tue, 28 Jun 2005 07:27:01 -0700 (PDT) Received: by 10.48.144.17 with HTTP; Tue, 28 Jun 2005 07:27:01 -0700 (PDT) Message-ID: Date: Tue, 28 Jun 2005 16:27:01 +0200 From: Enrique Medina Reply-To: Enrique Medina To: MyFaces Discussion Subject: Re: dinamic order of rendering of columns in data table In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <011301c57beb$8f9e3b90$05030196@poker.it> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sorry, the Java Code should be this: public DataModel getListDataModel() { // Get the collection. List mylist =3D DoSomethingToGetTheListMethod(); // Order the collection (maybe using a Comparator). Collections.sort(mylist, new ComparatorIfApplicable()); return new ListDataModel(mylist); } 2005/6/28, Enrique Medina : > Hi Claudio, >=20 > Whay not just use the Collections.sort Java mechanism just before > passing the collection to your DataModel? For example: >=20 > JSP PAGE: >=20 > >=20 > JAVA CLASS: >=20 > public List getListDataModel() > { > // Get the collection. > List mylist =3D DoSomethingToGetTheListMethod(); >=20 > // Order the collection (maybe using a Comparator). > Collections.sort(mylist, new ComparatorIfApplicable()); >=20 > return mylist; > } >=20 > 2005/6/28, Claudio Tamietto : > > > > for dynamic rendering i mean this : > > I have a table A with columns 1,2,3,4,5 > > > > the user xx want to see the columns in this order 3,1,5 > > ands the user yy want to see the columns in this order 2,3,4. > > > > I don't want to have two jsp but only one where i can configure the ord= er of > > rendering of the colums. > > > > > > ----- Original Message ----- > > From: Jesse Alexander (KBSA 21) > > To: MyFaces Discussion > > Sent: Tuesday, June 28, 2005 4:01 PM > > Subject: RE: dinamic order of rendering of columns in data table > > > > > > What do you mean by dynamic rendering? > > > > Alexander > > (che cosa vuoi fare?) > > > > > > > > ________________________________ > > From: Claudio Tamietto [mailto:c.tamietto@poker.it] > > Sent: Tuesday, June 28, 2005 3:57 PM > > To: MyFaces Discussion > > Subject: dinamic order of rendering of columns in data table > > > > > > > > is it possibile rendering the columns of a table in a dinamic way or i= have > > to create a new component and subclass it ? >