Document Generator

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.


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:

  • normal: Normal layout. Title, description and link all in seerated lines.
  • inline: Title and link in a single line. reverts to normal layout if a description exists.
  • minimal: Title is the description of the link. reverts to normal layout if a description exists.

Some examples can be seen bellow.


<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/difcore" prefix="dif"%>
    <dif:documentGenerator eventId="doc" message="Download document" />

Back to tag reference