Oracle ADF DragNDrop af:table行返回null

时间:2018-09-17 08:23:47

标签: drag-and-drop oracle-adf

我有一个具有从af:table到af:table的组件拖放功能的应用程序。目标表将是一个普通的adf表。但是源表将在af:column中具有带有panelFormLayout的panelBox。即使我以单个用户测试表单,也无法获得托管bean中的行值。请参阅屏幕截图。

page fragment sample code

Transferable dropTransferable = dropEvent.getTransferable();         UIComponent movingComponent =             dropTransferable.getData(DataFlavor.UICOMPONENT_FLAVOR);

    // Executes only when the dragged component action is MOVE.
    if (movedComponent != null &&
        DnDAction.MOVE.equals(dropEvent.getProposedAction())) {

        if (dropEvent.getDragComponent().getId().equals(this.getTasksPanelBox().getId())) {
            combinedTaskUomStr =
                    (String)dropEvent.getDragComponent().getAttributes().get("panelBoxValues");
            if (dropEvent.getDragComponent().getAttributes().get("panelBoxExtnId") !=
                null) {

                extnIdStr =
                        String.valueOf(dropEvent.getDragComponent().getAttributes().get("panelBoxExtnId"));
            } else {

                extnIdStr = null;
            }
        } else {
            combinedTaskUomStr =
                    (String)dropEvent.getDragComponent().getAttributes().get("TaskidUomId");
            if (dropEvent.getDragComponent().getAttributes().get("ExtnId") !=
                null) {

                extnIdStr =
                        String.valueOf(dropEvent.getDragComponent().getAttributes().get("ExtnId"));
            } else {

                extnIdStr = null;
            }
        }

0 个答案:

没有答案