The dynamic function resource type makes it possible to integrate JSP functionality directly on the website. The function element points to the required JSP and can be directly dropped into the container page.
Use Case: Collecting data in a form on the webpage and sending this information to another JSP for further evaluation, e.g. integration of a search form on several pages of the website.
The results of the evaluation, e.g. search results, are displayed on a predefined page in the navigation on the website. Since OpenCms 8.0.3 you can use a function detail page to define such a result page.
To use the function detail page for the function element the following steps are required:
Configuration of the function detail page
Edit property "container.info" on the template jsp. Set the property value to:
functionDetail=centercolumn
where "centercolumn" is the attribute "name" of the <cms:container>, where the results are displayed.
Using the function detail page on the website
Check the following resources for implementation details:
/dev-demo/.content/.config /dev-demo/.content/.functions/ /dev-demo/.content/.functions/calculator-form.jsp /dev-demo/.content/.functions/calculator-result.jsp
/system/modules/com.alkacon.bootstrap.formatters/.content/.config /system/modules/com.alkacon.bootstrap.formatters/templates/boostrap-page.jsp