Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 70863 invoked from network); 19 Jan 2011 13:57:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jan 2011 13:57:06 -0000 Received: (qmail 99826 invoked by uid 500); 19 Jan 2011 13:57:05 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 98836 invoked by uid 500); 19 Jan 2011 13:57:02 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 98369 invoked by uid 99); 19 Jan 2011 13:57:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jan 2011 13:57:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andy.g.schwartz@gmail.com designates 209.85.214.181 as permitted sender) Received: from [209.85.214.181] (HELO mail-iw0-f181.google.com) (209.85.214.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jan 2011 13:56:55 +0000 Received: by iwn3 with SMTP id 3so830669iwn.12 for ; Wed, 19 Jan 2011 05:56:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=lZuY8sISaL1o1SwF43Cl/4o2ep6E/acGXfRHxZo3ROY=; b=jFWHc4pBEKm2yikohnB5leGve1n891GVLlMmDeQwjUP9jb+vIaa9bHhJ5T+zcWIZG6 5jOr1S7ROT9ioGBfnPsrXzRAO6aYDj9oP8FG2u3m0Zkupyxc1/8B2LoMzBvzszlVZpC5 Lb8OxPPnURTyTIFb99q6P4fZpBHPfocBHoMCk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=r4sjU7JP4F4FrInBpK/+6zIot6ifV6Moskk2CHrhv4jQvG6CReWoAlLgNsWd5PmHcE JDzzs/msBM7Fw0haGuX9r2WkxiCGLGR4FDr753DxUrcHfCa7ASnbRivyEB7WB8WlmTwd BMVIkQ26S0aQ4+4yOcruDUGLXKiZVjXjk4cRg= MIME-Version: 1.0 Received: by 10.231.32.76 with SMTP id b12mr822419ibd.162.1295445395013; Wed, 19 Jan 2011 05:56:35 -0800 (PST) Received: by 10.231.173.70 with HTTP; Wed, 19 Jan 2011 05:56:34 -0800 (PST) In-Reply-To: <1295035939.7708.45.camel@markoc-desktop> References: <1295035939.7708.45.camel@markoc-desktop> Date: Wed, 19 Jan 2011 08:56:34 -0500 Message-ID: Subject: Re: [core] ajax @this with non trivial component From: Andy Schwartz To: MyFaces Development Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Martin - I was worried about this case as well when we were working on the Ajax/ClientBehavior APIs. Many Trinidad/ADF Faces components use similar markup to what you describe. To support this case, we added the ClientBehaviorContext.getSourceId() API: http://download.oracle.com/javaee/6/api/javax/faces/component/behavior/ClientBehaviorContext.html#getSourceId() This allows renderers that attach client behaviors to non-root DOM elements to explicitly specify the id that corresponds to the component. This value will (or, well, should) be passed in as the first argument to jsf.ajax.request() and used as the replacement for "@this" targets. Andy