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

    <rich:dropSupport/> reRendering

    Alex Beardsley Newbie

      Here's the scenario I have:

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

      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?