Allow double quote in title. This is possible because, at least OOTB, all title should be localized. Hence from a label in an XML file, and nothing prevent to use double quotes there

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921773 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2010-03-11 10:17:15 +00:00
parent d6056327ca
commit 9652e69f8f
@@ -1162,7 +1162,7 @@ public class MacroFormRenderer implements FormStringRenderer {
sr.append(" name=\"");
sr.append(modelFormField.getModelForm().getName());
sr.append("\" title=\"");
sr.append(title);
sr.append(FreeMarkerWorker.encodeDoubleQuotes(title));
sr.append("\" />");
executeMacro(sr.toString());
} else if (modelFormField.isSortField()) {
@@ -2421,7 +2421,6 @@ public class MacroFormRenderer implements FormStringRenderer {
public void renderImageField(Appendable writer, Map<String, Object> context, ImageField imageField) throws IOException {
ModelFormField modelFormField = imageField.getModelFormField();
String border = Integer.toString(imageField.getBorder());
String value = modelFormField.getEntry(context, imageField.getValue(context));
String width = "";
String height = "";