Drag and Drop in nested dataTables

你说的曾经没有我的故事 提交于 2019-12-05 13:07:41

You can always drag Drag-Drop from one container to another container.

Say a draggable row in p:table or p:panel within a p:panelgrid (A side) to Droppable p:outPanel (B-side) u'll maintain two List, one for A side and the other for B side.

And make the A-side as droppable and B-side as dragable to have a cyclic Drag-Drop Behaviour(Both will act as datasource to each others droppable tag) and making use of ddEvent.getData to add and remove from the Object List in the controller side.

For the above requirement you can either implement a panelGrid and have multiple relations like this.

OR

Use dragabblerows = "true" and draggableColumns="true" to play around with the rows and columns in the P:table parameter. :p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!