Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 54335 invoked from network); 14 Jul 2007 11:50:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2007 11:50:32 -0000 Received: (qmail 27795 invoked by uid 500); 14 Jul 2007 11:50:31 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 27403 invoked by uid 500); 14 Jul 2007 11:50:30 -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 27392 invoked by uid 99); 14 Jul 2007 11:50:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jul 2007 04:50:29 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.234.253.30] (HELO nemours.org) (192.234.253.30) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jul 2007 04:50:25 -0700 Received: from nemapp38.nemours.org ([172.19.10.55]) by nemours.org with Microsoft SMTPSVC(5.0.2195.6713); Sat, 14 Jul 2007 07:51:31 -0400 Received: from 10.20.11.90 by nemapp38.nemours.org with ESMTP (SMTP Relay); Sat, 14 Jul 2007 07:51:56 -0400 X-Server-Uuid: 35EBC2B0-EA10-409F-9923-04DFACBAF8D2 Received: from jaxmsx02.nemours.org ([10.20.9.25]) by nemmsx01.nemours.org with Microsoft SMTPSVC(5.0.2195.6713); Sat, 14 Jul 2007 07:49:31 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: [Trinidad] Renderer Listeners Date: Sat, 14 Jul 2007 07:49:36 -0400 Message-ID: <5B930A45C354E84395A194D500589ED8601DD9@jaxmsx02.nemours.org> In-Reply-To: <5B930A45C354E84395A194D500589ED8601DD8@jaxmsx02.nemours.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Trinidad] Renderer Listeners Thread-Index: AcfFg36QOO7Dg/FOSjycldL3gjNXTQAAGidQACIRH9A= From: "William Hoover" To: "MyFaces Discussion" X-OriginalArrivalTime: 14 Jul 2007 11:49:31.0741 (UTC) FILETIME=[0A8FA8D0:01C7C60D] X-WSS-ID: 6A8667562JS713334-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: AAAAAQAAA+k= X-Language-Identified: TRUE X-Virus-Checked: Checked by ClamAV on apache.org Anyone have any suggestions on how I can get this working? On a side note... I think it would be a nice enhancement to add renderer = listeners to the base component to allow events to be fired before/after = a component renders. I think there would be a lot less developers = attempting to extend components for trivial application specific tweaks. = Any thoughts? -----Original Message----- From: William Hoover [mailto:whoover@nemours.org] Sent: Friday, July 13, 2007 4:08 PM To: MyFaces Discussion Subject: RE: [Trinidad] Renderer Listeners As you guessed it, there are links within each table row that contain a = f:param that holds data for that row. When the user clicks on that row I = need to update a separate input field (outside the table- inside the = same form) with the value from the f:param. I need this to happen on the = client side before the page submits.=20 I know that I can make this happen using EL in the link's onclick = attribute based upon the current row data and the separate input field = id (i.e. onclick=3D"javascript: = setInputValue('separateInputFieldId',#{row.someValue}';"), but I have a = table view that gets reused quite a bit that may or may not need this = feature based upon individual needs. Also, I'm not sure that it's a good = idea to capture the client id for the separate input field in this = manner due to the client id dependency on naming containers. That's why = I'm looking for a programmatic solution that will add the needed = javascript call on an as needed basis before the link/param are rendered = outside the jsf page. -----Original Message----- From: Adam Winer [mailto:awiner@gmail.com] Sent: Friday, July 13, 2007 3:24 PM To: MyFaces Discussion Subject: Re: [Trinidad] Renderer Listeners Well, that's what you're doing, but doesn't quite explain (A) why the value is null until the link is rendered (though I'm guessing that's because its value comes from the table data) (B) why you need to get the param value for this specific command link within this table (or a specific row of the table?) -- Adam On 7/13/07, William Hoover wrote: > I am trying to get a f:param value from a CoreCommandLink, but the = value is null until the link has been rendered. > > The link is inside a tr:column- if that helps. > > -----Original Message----- > From: Adam Winer [mailto:awiner@gmail.com] > Sent: Friday, July 13, 2007 2:42 PM > To: MyFaces Discussion > Subject: Re: [Trinidad] Renderer Listeners > > > There's no event listener, but there is that ResponseWriter > API, which will get passed components on startElement(). > 99% works (necessarily, because PPR relies on that!). > What functionality are you trying to get here? > > -- Adam > > > On 7/13/07, William Hoover wrote: > > I don't suppose there are any event listeners that can detect when = components are being rendered? It would be nice if there was a way to be = able to... > > > > component.addRendererListener(new RendererListener() { > > public void processRenderBegin(RenderEvent event) { > > ... > > } > > public void processRenderEnd(RenderEvent event) { > > ... > > } > > }); > > > > > >