The Web Dock portlet is capable of publishing a JSR 286 based portlet event.
To enable the Web Dock portlet to publish a client side event, set the Publish server side event preference in the Edit Shared Settings
mode of the WebDock portlet to true and create a wire from the Web Dock portlet to some target portlet using the Portlet Wiring Tool. The Web Dock portlet publishes a JSON string containing the id and value (if the source element is a, then value will be href property of the element) properties of the source element. The source element is the element on which the user did some action which resulted in the publishing of the event. The Type of event source element preference 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 Type of event captured preference 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 Web Dock portlet. Only the events that are captured from inside the iframe of the Web Dock portlet will result in the publishing of an event. The following information is the event definition given in the portlet.xml
file of the Web Dock portlet:
Parent topic: Supporting Inter Portlet Communication in the web application bridge