小部件 后台弹出窗口未显示 [输出连接始终为空]



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

我在 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>

这是我的威吉特文件

<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>

您是否在custom-backoffice-widgets.xml文件中创建了小部件,其中包含widget id="warehousingFulfillmenttPopup"和WidgetDeifintionId="com.yazeed.yazeedfulfillmentbackoffice.widgets.fulfillmenttype">

最新更新