ICEfaces
  1. ICEfaces
  2. ICE-9036

ace:tree - NodeStateMap.getExpended method returns wrong results

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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;

        Activity

        Hide
        Nils Lundquist added a comment -

        Revision #33710
        Committed by nils.lundquist
        Moments ago
        ICE-9036 - ace:tree NodeStateMap predicate selects for correct state attribute

        Show
        Nils Lundquist added a comment - Revision #33710 Committed by nils.lundquist Moments ago ICE-9036 - ace:tree NodeStateMap predicate selects for correct state attribute

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: