Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 99890 invoked from network); 18 May 2006 08:59:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 May 2006 08:59:26 -0000 Received: (qmail 39351 invoked by uid 500); 18 May 2006 08:59:23 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 39300 invoked by uid 500); 18 May 2006 08:59:23 -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 39289 invoked by uid 99); 18 May 2006 08:59:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2006 01:59:23 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of cosmacol@gmail.com designates 64.233.184.231 as permitted sender) Received: from [64.233.184.231] (HELO wr-out-0506.google.com) (64.233.184.231) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 May 2006 01:59:22 -0700 Received: by wr-out-0506.google.com with SMTP id 67so371748wri for ; Thu, 18 May 2006 01:59:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=PvmU0kvu8NJ6b8GtNEREIE3rA4WsSA8f+LdNEXhsXqP4bW3uDcNBw0buflf7R2KEyI/Dkk3raAp89AQgR/Y4Uk6nkCJgSqIYlNAmQ5+qIraKUIV1WasPZKQAZ6TS1JoL39IqmnvvvIOTh62hJlzELGrDk4s4HKE13OMgskyZMqo= Received: by 10.54.103.17 with SMTP id a17mr327024wrc; Thu, 18 May 2006 01:59:02 -0700 (PDT) Received: by 10.54.105.20 with HTTP; Thu, 18 May 2006 01:59:02 -0700 (PDT) Message-ID: <467251f60605180159r626257abl424584f202a92519@mail.gmail.com> Date: Thu, 18 May 2006 10:59:02 +0200 From: "Cosma Colanicchia" To: "MyFaces Discussion" Subject: Re: Wiki entry "ExecutingMethodsFromLinkButtonParameters": how can it works? In-Reply-To: <8f985b960605171140q71022857te4ea8c910629c960@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8291_6478199.1147942742006" References: <467251f60605170026r23342735s2d99a77df57645c@mail.gmail.com> <467251f60605170244p1c0ca597n877811be467feb23@mail.gmail.com> <8f985b960605171140q71022857te4ea8c910629c960@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_8291_6478199.1147942742006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you for the response, but I found a solution that doesn't requires binding the dataTable on my backing bean. In fact, it is the exact one described in the wiki, I had to remove preserveDataMode=3D"true" to make it work. Having to session-scope my DataModel anyway for other reasons, I thin= k that this feature isn't really needed in my case. Bye Cosma 2006/5/17, Mike Kienenberger : > > On 5/17/06, Cosma Colanicchia wrote: > > }" > > rows=3D"8" preserveDataModel=3D"true"> > > > > Having just writed a custom DataModel for paging on a large table, I > > > understood that the setRowIndex and getRowData methods are repeatedly > > > invoked as needed before the rendering of the table output. Anyone ca= n > > > explain me how can a call to getRowData() in the action handler for > > > the "Edit" commandLink find the clicked row in the current DataModel > > > rowIndex? Who is going to set it? > > I've always done this by using binding=3D"#{bean.myUIDataComponent}" and calling > myUIDataComponent.getRowData(). The UIData component will set the > rowIndex. > ------=_Part_8291_6478199.1147942742006 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you for the response, but I found a solution that doesn't requires bi= nding the dataTable on my backing bean. In fact, it is the exact one descri= bed in the wiki, I had to remove preserveDataMode=3D"true" to mak= e it work. Having to session-scope my DataModel anyway for other reasons, I= think that this feature isn't really needed in my case.

Bye
Cosma



2006/5= /17, Mike Kienenberger <mkienenb@g= mail.com>:
On 5/17/06, Cosma Colanicchia <cos= macol@gmail.com> wrote:
> <t:dataTable id=3D"peopleLis= t" var=3D"person" value=3D"#{peopleListBacker.list}&quo= t;
> rows=3D"8" preserveDataModel=3D"true">

&= gt; > Having just writed a custom DataModel for paging on a large table,= I
> > understood that the setRowIndex and getRowData methods are = repeatedly
> > invoked as needed before the rendering of the table output. A= nyone can
> > explain me how can a call to getRowData() in the act= ion handler for
> > the "Edit" commandLink find the clic= ked row in the current DataModel
> > rowIndex? Who is going to set it?

I've always done thi= s by using <t:dataTable
binding=3D"#{bean.myUIDataComponent}&quo= t; and calling
myUIDataComponent.getRowData().    Th= e UIData component will set the
rowIndex.

------=_Part_8291_6478199.1147942742006--