Re: Getting the Component ID from within getOnclick()

2007-02-28 Thread Danny Robinson
Sorry, I should have been clearer. In the renderer code on the server-side my component overrides the XhtmlRenderer.getOnclick() to insert some custom javascript. Within this method I'd like to be able to call getClientId() on the component to grab the id. Currently I'm having to use eval

Re: Getting the Component ID from within getOnclick()

2007-02-28 Thread Martin Marinschek
Well, if the component is not passed in, you can't. The question is if the method signature should be changed. regards, Martin On 2/28/07, Danny Robinson [EMAIL PROTECTED] wrote: Sorry, I should have been clearer. In the renderer code on the server-side my component overrides the

Re: Getting the Component ID from within getOnclick()

2007-02-27 Thread Danny Robinson
anyone ;-) On 2/23/07, Danny Robinson [EMAIL PROTECTED] wrote: Guys, Any advice on how to easily retrieve the component ID from within an overridden method such as XhtmlRenderer.getOnclick(). The only parameter to this is FacesBean.Type, and not the component itself. Thanks, Danny --

Re: Getting the Component ID from within getOnclick()

2007-02-27 Thread Mike Kienenberger
Keeping in mind that I have barely a day's worth of practical javascript experience, maybe this.id or something along those lines? On 2/27/07, Danny Robinson [EMAIL PROTECTED] wrote: anyone ;-) On 2/23/07, Danny Robinson [EMAIL PROTECTED] wrote: Guys, Any advice on how to easily retrieve

Getting the Component ID from within getOnclick()

2007-02-23 Thread Danny Robinson
Guys, Any advice on how to easily retrieve the component ID from within an overridden method such as XhtmlRenderer.getOnclick(). The only parameter to this is FacesBean.Type, and not the component itself. Thanks, Danny -- Chordiant Software Inc. www.chordiant.com