5 Replies Latest reply on Feb 12, 2009 8:12 AM by ilya_shaikovsky

    After sort SDT, D&D falling

      SDT with drag and drop, before sort the data table, D&D works fine, crashed after sorting. I work with Richface version 3.3.0GA FF: 3.0.5. Does Anybody had the same problem too? Or this is bug of richfaces? Thanks in advance.

        • 1. Re: After sort SDT, D&D falling

          p.s. drop on the table is ok, the drag comes from other rich component.

          • 2. Re: After sort SDT, D&D falling

            In this test there is only one SDT and drop zone.

             <ui:composition xmlns="http://www.w3.org/1999/xhtml"
             xmlns:f="http://java.sun.com/jsf/core"
             xmlns:h="http://java.sun.com/jsf/html"
             xmlns:rich="http://richfaces.org/rich"
             xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
             xmlns:ui="http://java.sun.com/jsf/facelets"
             xmlns:dim="http://dimetis.de/jsf">
             <rich:scrollableDataTable id="table" height="200px" width="220px"
             value="#{appBean.items}" var="item" sortMode="single" rows="25"
             rowClasses="taskRows" columnClasses="taskColumns">
             <rich:column width="104px">
             <f:facet name="header">
             <h:outputText value="Name"/>
             </f:facet>
             <a4j:outputPanel layout="block" style="border:1px solid black">
             <rich:dragSupport dragIndicator=":form:indicator" dragType="pidDrag"
             dragValue="#{item.name}" ondragstart="alert('start drag');">
             <rich:dndParam name="label" value="#{item.name}" />
             </rich:dragSupport>
             <h:outputText value="#{item.name}" />
             </a4j:outputPanel>
             </rich:column>
             <rich:column width="104px">
             <f:facet name="header">
             <h:outputText value="Value"/>
             </f:facet>
             <div style="margin-top:2px;display:block;">
             <h:outputText value="#{item.value}" />
             </div>
             </rich:column>
             <rich:componentControl id="taskcontrolid" for="tContextMenu" operation="show"/>
             </rich:scrollableDataTable>
            </ui:composition>


            • 3. Re: After sort SDT, D&D falling

              D&D works again, after reRender the whole SDT.

              • 4. Re: After sort SDT, D&D falling

                FF 3.0.5 and IE 7 doesn't work. Opera is Ok.

                • 5. Re: After sort SDT, D&D falling
                  ilya_shaikovsky