0 Replies Latest reply on Sep 28, 2011 12:40 PM by kwutzke

    Tree node drag type string only?

    kwutzke

      Hello,

       

      in a RichFaces tree node, here like

       

      {code}<rich:treeNode type="chapter"

                     expanded="#{true}"

                     iconExpanded="/images/icons/page_white_stack.png"

                     iconCollapsed="/images/icons/page_white_stack.png"

                     iconLeaf="/images/icons/page_white_stack.png">

        <a4j:outputPanel>

          <rich:dragSource type="chapter" dragValue="#{node}" dragIndicator="dnd-indicator-chapter" />

          <rich:dropTarget acceptedTypes="chapter,doc,pdf" dropValue="#{node}"

                           dropListener="#{pqTreeBean.processDrop}"

                           render="sorting-tree" />

          <h:panelGrid columns="2">

            <h:selectBooleanCheckbox value="#{node.isToC}" />

            <rich:inplaceInput value="#{node.name}" />

          </h:panelGrid>

        </a4j:outputPanel>

      </rich:treeNode>{code}

       

      can the drag'n drop type only be of type string or can it be any custom object?

       

      As from the acceptedTypes dropTarget, I'd guess only String is allowed, can anybody confirm this?

       

      Karsten