ICEfaces
  1. ICEfaces
  2. ICE-2753

Drag and drop between tree node and panelGroup causes exception

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      all

      Description

      When dragging a tree node to 1 of 3 panel groups set as drop targets, an internal server error popup is shown and an exception is thrown when the item is dropped:

      11:24:41,031 WARN [lifecycle] java.lang.NullPointerException
      javax.faces.el.EvaluationException: java.lang.NullPointerException
      at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
      at com.icesoft.faces.component.ext.HtmlPanelGroup.broadcast(HtmlPanelGroup.java:743)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:494)
      .............................

      I have attached my 1.6.2 test case which had been deployed on jboss 4.2.

        Issue Links

          Activity

          Tyler Johnson created issue -
          Hide
          Tyler Johnson added a comment -

          Example uses 1.6.2. Does not work in 1.7

          Show
          Tyler Johnson added a comment - Example uses 1.6.2. Does not work in 1.7
          Tyler Johnson made changes -
          Field Original Value New Value
          Attachment tree_dynamic.war [ 10822 ]
          Tyler Johnson made changes -
          Tyler Johnson made changes -
          Description When dragging a tree node to 1 of 3 panel groups set as drop targets, the item can only be drag and dropped successfully to the 1st panel group. Works fine in 1.6.2. Version 1.7 DR3 doesn't throw an exception but 1.7 beta1 does:

          11:24:41,031 WARN [lifecycle] java.lang.NullPointerException
          javax.faces.el.EvaluationException: java.lang.NullPointerException
          at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
          at com.icesoft.faces.component.ext.HtmlPanelGroup.broadcast(HtmlPanelGroup.java:743)
          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
          at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:494)
          .............................

          I have attached my test case which had been deployed on jboss 4.2.
          When dragging a tree node to 1 of 3 panel groups set as drop targets, an internal server error popup is shown and an exception is thrown when the item is dropped:

          11:24:41,031 WARN [lifecycle] java.lang.NullPointerException
          javax.faces.el.EvaluationException: java.lang.NullPointerException
          at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
          at com.icesoft.faces.component.ext.HtmlPanelGroup.broadcast(HtmlPanelGroup.java:743)
          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
          at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:494)
          .............................

          I have attached my 1.6.2 test case which had been deployed on jboss 4.2.
          Tyler Johnson made changes -
          Summary Regression in drag and drop Drag and drop between tree node and panelGroup causes exception
          Ken Fyten made changes -
          Fix Version/s 1.7 [ 10080 ]
          Assignee Priority P2
          Assignee Adnan Durrani [ adnan.durrani ]
          Ken Fyten made changes -
          Assignee Adnan Durrani [ adnan.durrani ] Mircea Toma [ mircea.toma ]
          Hide
          Mircea Toma added a comment -

          Tyler, please compile the classes with JDK 1.4 or 1.5. I can't run the application on Mac. Also, you have to include all the required libraries in the WAR file. Don't assume that somebody else will have the exact same libraries in the IDE or the app. server classpath.

          Show
          Mircea Toma added a comment - Tyler, please compile the classes with JDK 1.4 or 1.5. I can't run the application on Mac. Also, you have to include all the required libraries in the WAR file. Don't assume that somebody else will have the exact same libraries in the IDE or the app. server classpath.
          Hide
          Tyler Johnson added a comment -

          Source code for test case.

          Show
          Tyler Johnson added a comment - Source code for test case.
          Tyler Johnson made changes -
          Attachment tree_dynamic_src.zip [ 10853 ]
          Ken Fyten made changes -
          Assignee Mircea Toma [ mircea.toma ] Adnan Durrani [ adnan.durrani ]
          Adnan Durrani made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          Adnan Durrani added a comment -

          The NullPointerException caused by the code inside the bean.

          Show
          Adnan Durrani added a comment - The NullPointerException caused by the code inside the bean.
          Hide
          Adnan Durrani added a comment -

          However I have to test that why the e.getTargetDragValue() is returning null.

          Show
          Adnan Durrani added a comment - However I have to test that why the e.getTargetDragValue() is returning null.
          Hide
          Adnan Durrani added a comment -

          Tyler's app works with 1.7DR#3. This bug seems like a regression of ICE-2680

          Show
          Adnan Durrani added a comment - Tyler's app works with 1.7DR#3. This bug seems like a regression of ICE-2680
          Adnan Durrani made changes -
          Link This issue depends on ICE-2680 [ ICE-2680 ]
          Hide
          Adnan Durrani added a comment -

          ICE-2680 fixes this problem.

          Show
          Adnan Durrani added a comment - ICE-2680 fixes this problem.
          Adnan Durrani made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 1.7RC1 [ 10123 ]
          Fix Version/s 1.7 [ 10080 ]
          Ken Fyten made changes -
          Fix Version/s 1.7 [ 10080 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Priority P2
          Assignee Adnan Durrani [ adnan.durrani ]
          Hide
          Mandeep Hayher added a comment -

          The original problem reported in the support link still exists:

          -If the application has more than one drop targets, user can drag and drop to only first drop target.

          It works fine with Icefaces1.6 but NOT with Icefaces1.7, I didnot see any exceptions in the server logs.

          Show
          Mandeep Hayher added a comment - The original problem reported in the support link still exists: -If the application has more than one drop targets, user can drag and drop to only first drop target. It works fine with Icefaces1.6 but NOT with Icefaces1.7, I didnot see any exceptions in the server logs.
          Mandeep Hayher made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Ken Fyten made changes -
          Fix Version/s 1.7.1 [ 10122 ]
          Fix Version/s 1.7RC1 [ 10123 ]
          Fix Version/s 1.7 [ 10080 ]
          Assignee Priority P2
          Affects Version/s 1.7 [ 10080 ]
          Affects Version/s 1.7Beta1 [ 10121 ]
          Assignee Adnan Durrani [ adnan.durrani ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16590 Tue May 06 10:23:03 MDT 2008 adnan.durrani Fix for ICE-2753 (Drag and drop between tree node and panelGroup causes exception)
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/bridge/lib/extras/droppable_ext.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16591 Tue May 06 10:23:21 MDT 2008 adnan.durrani Fix for ICE-2753 (Drag and drop between tree node and panelGroup causes exception)
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/extras/droppable_ext.js
          Hide
          Adnan Durrani added a comment -

          branch 1.7: revision 16590
          trunk: revision 16591

          Show
          Adnan Durrani added a comment - branch 1.7: revision 16590 trunk: revision 16591
          Adnan Durrani made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Priority P2
          Assignee Adnan Durrani [ adnan.durrani ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Tyler Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: