Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 60332 invoked from network); 15 Jul 2009 22:21:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 22:21:28 -0000 Received: (qmail 54438 invoked by uid 500); 15 Jul 2009 22:21:37 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 54349 invoked by uid 500); 15 Jul 2009 22:21:37 -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 54328 invoked by uid 99); 15 Jul 2009 22:21:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 22:21:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 22:21:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CC43A234C004 for ; Wed, 15 Jul 2009 15:21:14 -0700 (PDT) Message-ID: <1726271175.1247696474825.JavaMail.jira@brutus> Date: Wed, 15 Jul 2009 15:21:14 -0700 (PDT) From: "Andrew Robinson (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Updated: (TRINIDAD-1483) FocusEvent should contain information about the new focus row key In-Reply-To: <158002294.1242923025666.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TRINIDAD-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Robinson updated TRINIDAD-1483: -------------------------------------- Resolution: Fixed Fix Version/s: 1.2.12-core Status: Resolved (was: Patch Available) > FocusEvent should contain information about the new focus row key > ----------------------------------------------------------------- > > Key: TRINIDAD-1483 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1483 > Project: MyFaces Trinidad > Issue Type: Improvement > Components: Components > Reporter: Nicolas Pombourcq > Fix For: 1.2.12-core > > Attachments: focusevent1.2.11.3.patch > > > When the tree or tree table fires a FocusEvent, a backing bean that wants to keep current on the state of the focus row key needs to call component.getRowKey() to get the new focus row key, which is not very intuitive. getFocusRowKey does not work because if the attribute is bound to an EL expression and the new focus row key is null, it will actually end up resolving the EL expression which would contain the old value. > The best way to solve this would be to provide the following information on FocusEvent: > + Object getNewFocusRowKey(): returns the focus row key after the event has been processed; > + Object getOldFocusRowKey(): returns the focus row key before the event was fired. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.