简体   繁体   中英

Richfaces tree selfdrop

i got a tree

<rich:tree acceptedTypes="menu">
   <rich:treeNode dragType="menu" acceptedTypes="menu,article">
       menu
   </rich:treeNode>
   <rich:treeNode dragType="article" acceptedTypes="none">
       aricle
   </rich:treeNode>
</rich:tree>

and i got a tree like this:

 + menu 1
   + article 1
 + menu 2
   + article 2

I got two problems here now:

  1. If i click on menu 1 too slowly, a dragdrop-event is started instead of an selection-event.
  2. If i try to drag-drop menu1, i dont like to be able to drag menu1 to menu1.

Now my question is:

can i manipulate the dropabillity more preciesly?

The latest richfaces library has a demo, may be the demo implementation will help you. The demo does not behave like you have mentioned. http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=tree&skin=blueSky

Since you are using version 3.3.3 the below link might help you http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf?tab=dnd&cid=144111

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM