Class FormHtmlHandler

java.lang.Object
sk.iway.iwcm.components.multistep_form.rest.FormHtmlHandler

public class FormHtmlHandler extends Object
Renders multi‑step form HTML for both on‑page and email contexts.

Responsibilities: - Builds step and item markup using translation keys and form settings - Transforms inputs to read‑only representations for email/PDF rendering - Collects and inlines CSS for email/PDF variants - Optionally encrypts rendered email HTML using a provided public key

  • Constructor Details

    • FormHtmlHandler

      public FormHtmlHandler(String formName, javax.servlet.http.HttpServletRequest request)
  • Method Details

    • getFormHtmlBeforeCss

      public final String getFormHtmlBeforeCss()
      Returns the last rendered form HTML without appended CSS. Useful for plain email etc.
      Returns:
      HTML content without CSS, or empty string if not available
    • getCssDataPair

      public final Pair<String,String> getCssDataPair()
      Returns CSS collected during the last render.
      Returns:
      pair of (inline