Server side: WebDock portlet as publisher
The WebDock portlet is capable of publishing a JSR 286 based portlet event.Set the preference...
Publish server side event = true
...in the Edit Shared Settings mode of the WebDock portlet. Then create a wire from the WebDock portlet to a target portlet using the Portlet Wiring Tool.
The WebDock portlet publishes a JSON string containing the id and value of the source element. If the source element is "a", then value will be the href property of the element.
The source element contains user actions. The preference...
Type of event source element
...is used to specify the type of elements (a comma separated list like button, a ) which can result in the publishing of an event. The preference...
Type of event captured
...is used to specify the type of events (a comma separated list like onclick, onchange) that need to be captured from inside the iframe of the WebDock portlet. Only events captured from inside the iframe of the WebDock portlet will result in the publishing of an event.
Set the event definition in WebDock's portlet.xml...
... xmlns:vwat="http://www.ibm.com/portlets/webdock" ... <event-definition> <qname>vwat:ss_publisher_send_html_element</qname> <alias>xsd:string%/alias> <value-type>java.lang.String</value-type> </event-definition>