Всплывающее окно виджета в бэк-офисе не отображается [OutConnections всегда null]

Есть ли какое-то правило для подключения виджета?

Я создал действие в 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>

person yali    schedule 31.12.2019    source источник


Ответы (1)


Создали ли вы виджет в файле custom-backoffice-widgets.xml с идентификатором виджета=warehousingFulfillmenttPopup и WidgetDeifintionId=com.yazeed.yazeedfulfillmentbackoffice.widgets.fulfillmenttype

person Manjunath K B    schedule 16.10.2020