2 Replies Latest reply on Apr 24, 2007 5:01 AM by ilya_shaikovsky

    <rich:dropSupport/> reRendering

    nalandial

      Here's the scenario I have:

      <h:dataTable binding="#{ProjectBean.table}" value="#{ProjectBean.projectPageList}" id="pageList" var="pp">
       <h:column>
       <rich:panel>
       <rich:dragSupport id="page" dragType="page" dragValue="#{pp}">
       <h:outputText value="#{pp.pageName}"></h:outputText>
       </rich:dragSupport>
       </rich:panel>
       <rich:panel>
       <rich:dropSupport reRender="pageList" id="foo" acceptedTypes="page" dropListener="#{ProjectBean.processDrop}">
       <div style="border:1px solid black;"/>
       </rich:dropSupport>
       </rich:panel>
       </h:column>
      </h:dataTable>


      The idea of this is to be able to drag any of the <h:outputText>'s onto any of the divs.

      The drag&drop portion works beautifully. However what I can't seem to figure out is how to get the <h:dataTable> to refresh after the drop has completed. I tried using the reRereder attribute on the <rich:dropSupport> and give it the ID of the <h:dataTable>, but that didn't seem to do anything.

      Any suggestions?