【问题标题】:widget Popup in backoffice not showing [OutConnections always null]后台小部件弹出窗口未显示 [OutConnections 始终为空]
【发布时间】:2020-04-19 19:45:22
【问题描述】:

小部件连接有什么规则吗?

我在 BackOffice 上创建了操作,当我单击要显示弹出窗口的操作时,我在我的代码下方为弹出窗口创建了一个小部件 当我得到当前的小部件时,我得到了 widget.getOutConnection() 是空的??

<widget-connection sourceWidgetId="STUB_com.yazeed.yazeedfulfillmentbackoffice.actions.fulfillmentaction"
    outputId="fulfillmentContext" targetWidgetId="warehousingFulfillmenttPopup" inputId="consignmentInput" />

这是我的行动

<action-definition id="com.yazeed.yazeedfulfillmentbackoffice.actions.fulfillmentaction"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.hybris.com/schema/cockpitng/action-definition.xsd">
    <name>fulfillment.action</name>
    <actionClassName>com.yazeed.yazeedfulfillmentbackoffice.actions.FulfillmentAction</actionClassName>
    <inputType>de.hybris.platform.ordersplitting.model.ConsignmentModel</inputType>
    <outputType>de.hybris.platform.ordersplitting.model.ConsignmentModel</outputType>
    <settings>
        <setting key="viewMode" default-value="iconAndText" />
    </settings>
    <sockets>
        <output id="fulfillmentContext"  type="java.lang.Object" />
    </sockets>
</action-definition>

这是我的widgit文件

<widget-definition id="com.yazeed.yazeedfulfillmentbackoffice.widgets.fulfillmenttype"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.hybris.com/schema/cockpitng/widget-definition.xsd" >
    <name>Fulfillment Type</name>
    <sockets>
        <input type="de.hybris.platform.ordersplitting.model.ConsignmentModel" id="consignmentInput" />
        <output type="java.lang.Object" id="confirmOutput" />
    </sockets>
    <view src="fulfillmenttype.zul" />
    <keywords>
        <keyword>Fulfillment Type</keyword>
    </keywords>
    <controller class="com.yazeed.yazeedfulfillmentbackoffice.widgets.FulfillmentController"/>
</widget-definition>

【问题讨论】:

    标签: java hybris backoffice


    【解决方案1】:

    您是否在 custom-backoffice-widgets.xml 文件中使用小部件 id="warehousingFulfillmenttPopup" 和 WidgetDeifintionId="com.yazeed.yazeedfulfillmentbackoffice.widgets.fulfillmenttype" 创建了小部件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-12
      • 1970-01-01
      相关资源
      最近更新 更多