Package org.apache.ofbiz.widget.renderer
Class FormRenderer
java.lang.Object
org.apache.ofbiz.widget.renderer.FormRenderer
A form rendering engine.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCurrentContainerId
(ModelForm modelForm, Map<String, Object> context) static String
getCurrentFormName
(ModelForm modelForm, Map<String, Object> context) Gets focus field name.static String
getFocusFieldName
(ModelForm modelForm, Map<String, Object> context) void
render
(Appendable writer, Map<String, Object> context) Renders this form to a writer, as defined with the FormStringRenderer implementation.
-
Constructor Details
-
FormRenderer
-
-
Method Details
-
getCurrentContainerId
-
getCurrentFormName
-
getFocusFieldName
-
getFocusFieldName
Gets focus field name.- Returns:
- the focus field name
-
render
Renders this form to a writer, as defined with the FormStringRenderer implementation.- Parameters:
writer
- The Writer that the form text will be written tocontext
- 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
-