You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Kamran Kashanian (JIRA)" <de...@myfaces.apache.org> on 2009/06/01 22:11:07 UTC

[jira] Updated: (TRINIDAD-1483) FocusEvent should contain information about the new focus row key

     [ https://issues.apache.org/jira/browse/TRINIDAD-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kamran Kashanian updated TRINIDAD-1483:
---------------------------------------

    Status: Patch Available  (was: Open)

> 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
>         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.