Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 19440 invoked from network); 15 Dec 2005 14:46:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Dec 2005 14:46:11 -0000 Received: (qmail 34917 invoked by uid 500); 15 Dec 2005 14:45:58 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 34858 invoked by uid 500); 15 Dec 2005 14:45:57 -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 34847 invoked by uid 99); 15 Dec 2005 14:45:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2005 06:45:57 -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.192 as permitted sender) Received: from [66.249.82.192] (HELO xproxy.gmail.com) (66.249.82.192) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2005 06:45:56 -0800 Received: by xproxy.gmail.com with SMTP id s13so290299wxc for ; Thu, 15 Dec 2005 06:45:35 -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=AnbGpkMUQlI/Zd5iNdrieYdn9usD4N8nVWq5OYjHxXgzUpWJOEDBkgNg/G8Uwi16tIShNmO8G8TlwoCumlzKqrcI5v+OC+75OdwsBt22W8hKf1JKGeLedYQGimcUjpFwRbDJvqWnuIPYpFFvJGxy6LCnj8SZZZi1SUi/ze/DTMw= Received: by 10.70.77.17 with SMTP id z17mr894500wxa; Thu, 15 Dec 2005 06:45:33 -0800 (PST) Received: by 10.70.90.7 with HTTP; Thu, 15 Dec 2005 06:45:33 -0800 (PST) Message-ID: <9eb65db00512150645k1a2bdcabu@mail.gmail.com> Date: Thu, 15 Dec 2005 15:45:33 +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 is your problem solved now? 2005/12/14, Harald M=FCller : > Hi! > > Thank you for your answer! > > I'm using 1.0.9! > > Just tried to replace all myfaces-jars with the latest version (1.1.1) - = the output of is not visible/rendered anymore but is = - very strange! > > (And ... tabs look like buttons ... but I think that can be fixed by chan= ging something in the css-file?) > > Thanks, > Harry > > > -----Urspr=FCngliche Nachricht----- > Von: Mathias Br=F6kelmann [mailto:mbroekelmann@googlemail.com] > Gesendet: Mittwoch, 14. Dezember 2005 17:02 > An: MyFaces Discussion > Betreff: Re: datatable - parameter passing - workaround? > > 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 (= that'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 > -- Mathias