1 Reply Latest reply on Mar 21, 2012 3:41 AM by Shado Magon

    Nested (Drag and Drop) DND possible?

    Shado Magon Newbie

      Hi @LL,

       

      i have the follow case:

       

      <h:form id="form">

       

              <h:panelGrid columnClasses="panelc" columns="2" width="100%">

                   <rich:panel style="width:133px">

                      <h:outputText value="DragBereich" />

                          <rich:dragSupport dragIndicator=":indicator"

                                dragType="testType" dragValue="testValue">

                                <rich:dndParam name="label" value="dragFeld" />

                            </rich:dragSupport>

                  </rich:panel>

       

                  <rich:panel styleClass="dropTargetPanel">

       

                      <rich:dropSupport id="outerDrop" acceptedTypes="testType" dropValue="outerDropValue"

                          dropListener="#{DropBannerListener.processDrop}">

                      </rich:dropSupport>

       

                       <rich:panel style="border:1px solid gray;width:100px;height:100px;">

                                <rich:dropSupport id="innerDrop" acceptedTypes="testType" dropValue="innerDropValue"

                                  dropListener="#{DropBaseListener.processDrop}">

                                  </rich:dropSupport>

                       </rich:panel>

       

                  </rich:panel>

       

      When i drop something in my drop area only the outer drop zone with his listener DropBannerListener is called. Never the other listener DropBaseListener. So my question is, if it is possible to have nested drop areas?