Description: Generates a document response.
Remarks: This tag assumes that a document response method exists on the stage with the given ID. More on this here.
The document that will be generated will be defined in the specified method.
JavaDoc: Click here
Body content: Empty.
Attributes:
| Name | Description | Data type | Required | Default value |
| id | The id to set to the generated link HTML element for binding purposes | String | No | An auto-generated one |
| eventId | The id of the event handler method(Must be present if there's no documentID) | String | No | |
| layout | The layout format to render the links | String | No | normal |
| mimetype | The mimetype to use visually. Only changes the visual representation of the download link. Does not infer the real document mime-type. | String | No | |
| message | The message for the download link | String | Yes | |
| parameters | A list of comma separated parameters | String | No | - |
| description | The description text | String | No | - |
| documentID | The unique document Id from RepositoryMust be present if there's no eventId) | String | No | - |
Layout values: Available layouts:
Some examples can be seen bellow.
Examples:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/difcore" prefix="dif"%>
<dif:document>
<dif:documentGenerator eventId="doc" message="Download document" />
</dif:document>