Hi all,
I have created a custom editor in backoffice (-5.7.0.0) that needs to receive data from a popup. Everthing works fine, but the editor(stub) does not receive the SocketEvent through its input socket.
The editor is defined with
<editor-definition id="editor" ....>
<input id="socketEvent" type="java.lang.Object" />
and implemented like
public class Editor extends AbstractComponentWidgetAdapterAware implements CockpitEditorRenderer<String> {
....
public void render(final Component parent, final EditorContext<String> context, final EditorListener<String> listener) {
addSocketInputEventListener("socketEvent", new org.zkoss.zk.ui.event.EventListener<SocketEvent>() {
....
});
}
}
and connected by
<widget-connection sourceWidgetId="sender" outputId="output" targetWidgetId="STUB_editor" inputId="socketEvent" />
The "sender" widget does
sendOutput("output", someData);
I have spent hours and days on debugging this (the initial setup did look different and described setup is basically the result of debugging to lock down the issue faced in the original setup), but to no avail. I cannot get the editor to receive the data on its input socket.
I have for debugging purposes connected the source widget output socket to another widget (only logging that it received the event) as well, so I am sure the output is sent. The logging widget gets it, but the editor(stub) does not.
Any help is greatly appreciated!
Thanks in advance, Sven