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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #33710 Thu Feb 28 14:33:08 MST 2013 nils.lundquist ICE-9036 - ace:tree NodeStateMap predicate selects for correct state attribute
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/model/tree/NodeStateMap.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: