+

Search Tips   |   Advanced Search

The action URL plug-in

Use the ActionURL rendering plug-in to create portlet action URLs and to insert them into the web content. The generated action URLs always address the instance of the Web Content Viewer portlet that renders the [Plugin:ActionURL] tag. Use this plug-in when posting form data from the web content to the Web Content Viewer portlet. This plug-in does not render the content between the opening and the closing tags.

Syntax:

    [Plugin:ActionURL action="" param="" copyCurrentParams="" escape=""]

Attributes:

      action
      Name of the portlet action of the Web Content Viewer portlet to encode into the action URL. The portlet supports the portlet action name post.

      copyCurrentParams
      Whether we want the current portal state, and the parameters encoded in it, to be copied into the new URL. Set true or false. The default is false.

      param
      Optional action parameters. To set one or more action parameters, use one or more param attributes. As the value, specify a name-value pair, separated by an equals character ( = ). The name part specifies the name of the action parameter of the resulting URL. The value part specifies the value of the action parameter of the resulting URL. The Web Content Viewer portlet supports the optional parameters...

      • resultSessionAttribute
      • resultRenderParameter

      escape
      Escaping to be used to write the URL. Specify one of the following values xml, json, javascript, or none. The default is xml.


Example

    [Plugin:ActionURL action="post" param="uri=sr:forums" param="resultSessionAttribute=replyResult"]
    

This plug-in tag fragment generates a URL that triggers a portlet action named post. The Web Content Viewer rendering portlet that handles the action also receives the URI action parameter action.uri that points to sr:forums. Additionally, the portlet receives the resultSessionAttribute action parameter with the value replyResult.


Parent Digital data connector rendering plug-ins

Related concepts:

Send data to the Web Content Viewer portlet