A patch from Christian Carlow for "FOP rendered list form widgets do not work for fields with postition > 0" https://issues.apache.org/jira/browse/OFBIZ-6354

This patch adds the new list form widget header methods to the deprecated HtmlFormRenderer needed by EmailServices.java to handle OFBIZ-6360 until replaced with MacroFormRender.

jleroux: completes r1710527  


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2015-10-26 08:18:34 +00:00
parent 9efb447a80
commit 4536b7e1a3
@@ -1327,6 +1327,18 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe
}
renderEndingBoundaryComment(writer, "Form Widget - Formal List Wrapper", modelForm);
}
public void renderFormatHeaderOpen(Appendable writer, Map<String, Object> context, ModelForm modelForm) throws IOException {
writer.append(" <thead");
writer.append(">");
appendWhitespace(writer);
}
public void renderFormatHeaderClose(Appendable writer, Map<String, Object> context, ModelForm modelForm) throws IOException {
writer.append(" </thead");
writer.append(">");
appendWhitespace(writer);
}
/* (non-Javadoc)
* @see org.ofbiz.widget.form.FormStringRenderer#renderFormatHeaderRowOpen(java.io.Writer, java.util.Map, org.ofbiz.widget.form.model.ModelForm)