Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
V1Alpha, V1Beta
-
None
-
None
Description
TreeRootElement getSelectedNode() and TreeHelpers findSelectedNode(TreeElement root) are both a selection item behind the currently selected item.
Example tree:
Item0
Item0.0
JPF code snippet:
TreeRootElement myTree;
TreeHelpers myHelper;
@Jpf.Action(forwards =
{ @Jpf.Forward(name = "success", navigateTo=Jpf.NavigateTo.currentPage) })
protected Forward selectionAction()
Repro steps with above snippets:
1) If I click on Item0, the println is null and an error/warning is given
2) If I then click on Item0.0, the following will be printed:
SELECTED: 0
3) If I click on Item0.0 again, the following will be printed:
SELECTED: 0.0
Continue clicking and you will notice that the printed out selectedItem from the selection action is always one selection behind what was actually clicked.