Class FormRenderHelper


  • public final class FormRenderHelper
    extends Object
    Helper methods for rendering form element for the form designer.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • FormRenderHelper

        public FormRenderHelper()
    • Method Detail

      • createRenderedItem

        public static String createRenderedItem​(javax.servlet.http.HttpServletRequest req,
                                                javax.servlet.http.HttpServletResponse resp,
                                                IXFormRenderConfig renderConfig,
                                                RenderItemParams params)
        Parameters:
        req - Currently active HTTP request.
        resp - Currently active HTTP response.
        renderConfig - Current form render config.
        params - Params from the HTTP request.
        Returns:
        The rendered HTML for the given item.
      • createRenderedPreview

        public static String createRenderedPreview​(javax.servlet.http.HttpServletRequest req,
                                                   javax.servlet.http.HttpServletResponse resp,
                                                   long projectId,
                                                   long workflowVersionId,
                                                   PreviewParams params)
        Parameters:
        req - Currently active HTTP request.
        resp - Currently active HTTP response.
        projectId - ID of the current project being edited.
        workflowVersionId - ID of the workflow version being edited.
        params - Params from the HTTP request.
        Returns:
        The rendered HTML with a preview of the form.