Add a helper to input and output JSP files

To add a component onto a report input or output JSP file, import the component JSP files and add one JSP expression to the page.

The following shows an example that uses a helper JSP file on an input JSP file.

The file is named, by convention, generateInputComponent with a container name (unique to this page), a resource bundle, and one or two titles as parameters. As an example, in your input page, you will have something similar to the following:

<%page "ReportStartDateEndDateHelper.jspf" %>
.
.
. 
<body>
.
.
.
<%=generateStartDateEndDate("RequestPeriod", reportRB, "RequestPeriodTitleKey") %>
.
.
.
</body>

The expression returns a string that will generate the visible component on the page. To coordinate with above three functions, callback functions are defined with the naming convention: onLoadInputComponent, saveInputComponent and validateInputComponent. They should be called within initializeValue, savePanelData, and validatePanelDate respectively.

The SavePanelData function also saves information required by the reporting framework. Each input component provides return functions that give back inputted IDs, names, or other fields in that component. For details on these return functions, refer to any input component JSP.

Related concepts

Related tasks