+

Search Tips   |   Advanced Search

Implementing interactions with social objects

Site designers can implement design components that support a interactions between the user and the social data. For example, a user can post a new reply to a forum topic or delete a previous reply.

To create such interactive designs, site designers need to implement an HTML form to send a POST action request to the Web Content Viewer portlet that displays the social list. The HTML form must include the URI of a data sink and parameters that identify the action the designer wants to perform. The portlet then dispatches to the target data sink that processes the form data and returns a data source that holds the result. For example, the result can be a JSON object containing the status of the operation triggered with the POST action request and an error or success message. The portlet stores the result in the portlet session or as a private render parameter. To access the result in the formatting components, site designers can use the SessionAttribute rendering plug-in and the RenderParam rendering plug-in.

For more information about the action URL, render parameter, and session attribute rendering plug-ins, read Utility rendering plug-ins.

The following topics describe how you implement user interactions related to forum topics using the social-rendering specific data sink. Additionally, we can implement further user interaction using the generic XML Digital Data Connector data sink and the social rendering list-rendering profiles. For more information, read The generic XML Digital Data Connector data sink and Digital Data Connector profiles for social rendering.

  • Interacting with forums
    HCL WebSphere Portal provides a built-in data sink that supports different interactions with forums.

  • Create a reply
    When we perform a createReply action, the forums data sink uses a number of additional form fields.

  • Delete a reply
    When we perform a deleteReply action, the forums data sink uses a number of additional form fields.


Parent Customize view definitions for portal site visitors

Related concepts:

Send data to the Web Content Viewer portlet
The generic XML Digital Data Connector data sink

Related reference:

The social rendering Digital Data Connector plug-in
Digital Data Connector profiles for social rendering