To keep things consistent with r966202 and while at it I have also handled the action/event couple in HtmlFormRenderer.java.renderDateTimeField()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995771 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -518,6 +518,9 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe
|
||||
ModelFormField modelFormField = dateTimeField.getModelFormField();
|
||||
String paramName = modelFormField.getParameterName(context);
|
||||
String defaultDateTimeString = dateTimeField.getDefaultDateTimeString(context);
|
||||
|
||||
String event = modelFormField.getEvent();
|
||||
String action = modelFormField.getAction(context);
|
||||
|
||||
Map<String, String> uiLabelMap = UtilGenerics.checkMap(context.get("uiLabelMap"));
|
||||
if (uiLabelMap == null) {
|
||||
@@ -587,6 +590,14 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe
|
||||
writer.append(idName);
|
||||
writer.append('"');
|
||||
}
|
||||
|
||||
if (UtilValidate.isNotEmpty(event) && UtilValidate.isNotEmpty(action)) {
|
||||
writer.append(" ");
|
||||
writer.append(event);
|
||||
writer.append("=\"");
|
||||
writer.append(action);
|
||||
writer.append('"');
|
||||
}
|
||||
|
||||
writer.append("/>");
|
||||
|
||||
@@ -835,7 +846,6 @@ public class HtmlFormRenderer extends HtmlWidgetRenderer implements FormStringRe
|
||||
writer.append(")\" ");
|
||||
}
|
||||
|
||||
|
||||
if (UtilValidate.isNotEmpty(event) && UtilValidate.isNotEmpty(action)) {
|
||||
writer.append(" ");
|
||||
writer.append(event);
|
||||
|
||||
Reference in New Issue
Block a user