小部件连接有什么规则吗?
我在 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>