Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.2.0.GA
-
Fix Version/s: EE-3.2.0.GA
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Salesforce Case Reference:
Description
Bug in org.icefaces.ace.model.tree.NodeStateMap. getExpended method returns wrong results.
Code with bug:
--------------------------------------------------------------------------
static class ExpandedPredicate implements Predicate, Serializable {
public boolean evaluate(Object o) {
if (o instanceof Entry)
if (((NodeState)((Entry)o).getValue()).isSelected()) return true;
return false;
}
}
--------------------------------------------------------------------------
Instead of
if (((NodeState)((Entry)o).getValue()).isSelected()) return true;
should be
if (((NodeState)((Entry)o).getValue()).isExpanded()) return true;
Code with bug:
--------------------------------------------------------------------------
static class ExpandedPredicate implements Predicate, Serializable {
public boolean evaluate(Object o) {
if (o instanceof Entry)
if (((NodeState)((Entry)o).getValue()).isSelected()) return true;
return false;
}
}
--------------------------------------------------------------------------
Instead of
if (((NodeState)((Entry)o).getValue()).isSelected()) return true;
should be
if (((NodeState)((Entry)o).getValue()).isExpanded()) return true;
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Revision #33710
Committed by nils.lundquist
Moments ago
ICE-9036- ace:tree NodeStateMap predicate selects for correct state attribute