0 Replies Latest reply on Aug 13, 2010 2:43 PM by maxogm

    Better solution to discover drop location?

    maxogm

      Hello, I work on one page which should have drag and drop support.

      I see example from Richfaces live demo, and I made page... but I'm dynamically loading position in which to drop components...

      And all drop positions use same dropListener

      dropListener="#{packageManagementBean.processDrop}"

       

      Now, I this situation I do not now how to discover where I drop(on which location I drop)?

       

      I try to discover location using:

       

      <a4j:support event="onmouseup" action="#{packageManagementBean.setCurrentDropLocation}">
              <f:setPropertyActionListener value="#{qwe.qweID}" target="#{packageManagementBean.currentDropLocation}" />
      </a4j:support>

       

      and this is working, but I try to find better solution...