Class FormRenderer

java.lang.Object
org.apache.ofbiz.widget.renderer.FormRenderer

public class FormRenderer extends Object
A form rendering engine.
  • Constructor Details

  • Method Details

    • getCurrentContainerId

      public static String getCurrentContainerId(ModelForm modelForm, Map<String,Object> context)
    • getCurrentFormName

      public static String getCurrentFormName(ModelForm modelForm, Map<String,Object> context)
    • getFocusFieldName

      public static String getFocusFieldName(ModelForm modelForm, Map<String,Object> context)
    • getFocusFieldName

      public String getFocusFieldName()
      Gets focus field name.
      Returns:
      the focus field name
    • render

      public void render(Appendable writer, Map<String,Object> context) throws Exception
      Renders this form to a writer, as defined with the FormStringRenderer implementation.
      Parameters:
      writer - The Writer that the form text will be written to
      context - Map containing the form context; the following are reserved words in this context: parameters (Map), isError (Boolean), itemIndex (Integer, for lists only, otherwise null), formName (String, optional alternate name for form, defaults to the value of the name attribute)
      Throws:
      Exception