[
https://issues.apache.org/jira/browse/TRINIDAD-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711672#action_12711672
]
Nicolas Pombourcq commented on TRINIDAD-1483:
---------------------------------------------
The documentation for "FocusEvent" actually mentions this issue:
http://myfaces.apache.org/trinidad/trinidad-1_2/trinidad-api/apidocs/index.html
"Event delivered when focusing on a node in a tree. Currently this event
doesn't deliver much useful information as it doesn't tell which node is
getting focus. This will provide more useful information in a later release. "
> 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
>
> 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.