Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 65706 invoked from network); 14 Dec 2005 16:02:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Dec 2005 16:02:32 -0000 Received: (qmail 9522 invoked by uid 500); 14 Dec 2005 16:02:18 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 9263 invoked by uid 500); 14 Dec 2005 16:02:16 -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 9252 invoked by uid 99); 14 Dec 2005 16:02:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2005 08:02:16 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mbroekelmann@googlemail.com designates 66.249.82.195 as permitted sender) Received: from [66.249.82.195] (HELO xproxy.gmail.com) (66.249.82.195) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2005 08:02:16 -0800 Received: by xproxy.gmail.com with SMTP id s13so112527wxc for ; Wed, 14 Dec 2005 08:01:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jZ6yws/vDOQYlSnxE92UXdkyHC33HQk4+0gzCmnyjnAZDFjt4fiF3qF2phReO5YVXni9JqhfXqN7A49NB+8fQOB+N/0V01QYBENwq0T1yWHqAj4HD1EPZCji5I0QDuDzIxCGyNOBzhdQNJFy0ZBuc9sU5zekKB5NpHgQouklei4= Received: by 10.70.73.20 with SMTP id v20mr988257wxa; Wed, 14 Dec 2005 08:01:55 -0800 (PST) Received: by 10.70.90.7 with HTTP; Wed, 14 Dec 2005 08:01:55 -0800 (PST) Message-ID: <9eb65db00512140801j186c0885h@mail.gmail.com> Date: Wed, 14 Dec 2005 17:01:55 +0100 From: =?ISO-8859-1?Q?Mathias_Br=F6kelmann?= To: MyFaces Discussion Subject: Re: datatable - parameter passing - workaround? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N which version of myfaces do you use? 2005/12/14, Harald M=FCller : > Sorry ... my mistake ... > > The problem is not that every column of each row has the same content (th= at's exactly what the code does) ... > but I always get the object of the first row with mRowHolder.getRowData()= . > > Output: > > Col1 > Row1 Name_of_row1 > Row2 Name_of_row1 > Row3 Name_of_row1 > > > And not: > > Col1 > Row1 Name_of_row1 > Row2 Name_of_row2 > Row3 Name_of_row3 > > Thanks, > Harry > > > > > -----Urspr=FCngliche Nachricht----- > Von: Mathias Br=F6kelmann [mailto:mbroekelmann@googlemail.com] > Gesendet: Mittwoch, 14. Dezember 2005 15:54 > An: MyFaces Discussion > Betreff: Re: datatable - parameter passing - workaround? > > 2005/12/14, Harald M=FCller : > > private List createColumns() > > { > > List result =3D new ArrayList(); > > result.add(new Column("Col1", this)); > > result.add(new Column("Col2", this)); > > result.add(new Column("Col3", this)); > > // add more columns > > return result; > > } > > > public String getValue() > > { > > Object rowData =3D mRowHolder.getRowData(); > > if(rowData !=3D null) > > { > > return ((TaskInstance)rowData).getName()+""; > > } > > return null; > > } > > you call getName() for every column... > > try using the column header to determine which getter you have to call > on the row instance. > > > -- > Mathias > -- Mathias