diff --git a/framework/common/src/main/java/org/apache/ofbiz/common/FindServices.java b/framework/common/src/main/java/org/apache/ofbiz/common/FindServices.java index 22c68cc1b2..62cf87caf9 100644 --- a/framework/common/src/main/java/org/apache/ofbiz/common/FindServices.java +++ b/framework/common/src/main/java/org/apache/ofbiz/common/FindServices.java @@ -218,11 +218,19 @@ public class FindServices { Set processed = new LinkedHashSet<>(); Set keys = new LinkedHashSet<>(); Map fieldMap = new LinkedHashMap<>(); + /** + * When inputFields contains several xxxx_grp, yyyy_grp ... values, + * Corresponding conditions will grouped by an {@link EntityOperator.AND} then all added to final + * condition grouped by an {@link EntityOperator.OR} + * That will allow union of search criteria, instead of default intersection. + */ + Map> savedGroups = new LinkedHashMap(); for (ModelField modelField : fieldList) { fieldMap.put(modelField.getName(), modelField); } List result = new LinkedList<>(); for (Map.Entry entry : parameters.entrySet()) { + String currentGroup = null; String parameterName = entry.getKey(); if (processed.contains(parameterName)) { continue; @@ -237,7 +245,15 @@ public class FindServices { } else if (parameterName.endsWith("_value")) { fieldName = parameterName.substring(0, parameterName.length() - 6); } - String key = fieldName.concat("_ic"); + + String key = fieldName.concat("_grp"); + if (parameters.containsKey(key)) { + if (parameters.containsKey(key)) { + keys.add(key); + } + currentGroup = (String) parameters.get(key); + } + key = fieldName.concat("_ic"); if (parameters.containsKey(key)) { keys.add(key); ignoreCase = "Y".equals(parameters.get(key)); @@ -272,11 +288,28 @@ public class FindServices { if (ObjectType.isEmpty(fieldValue) && !"empty".equals(operation)) { continue; } - result.add(createSingleCondition(modelField, operation, fieldValue, ignoreCase, delegator, context)); + if (UtilValidate.isNotEmpty(currentGroup)){ + List groupedConditions = new LinkedList<>(); + if(savedGroups.get(currentGroup) != null) { + groupedConditions.addAll(savedGroups.get(currentGroup)); + } + groupedConditions.add(createSingleCondition(modelField, operation, fieldValue, ignoreCase, delegator, context)); + savedGroups.put(currentGroup, groupedConditions); + } else { + result.add(createSingleCondition(modelField, operation, fieldValue, ignoreCase, delegator, context)); + } + for (String mapKey : keys) { queryStringMap.put(mapKey, parameters.get(mapKey)); } } + //Add OR-grouped conditions + List orConditions = new LinkedList<>(); + for (String groupedConditions : savedGroups.keySet()) { + orConditions.add(EntityCondition.makeCondition(savedGroups.get(groupedConditions))); + } + if (orConditions.size() > 0) result.add(EntityCondition.makeCondition(orConditions, EntityOperator.OR)); + return result; } diff --git a/framework/widget/dtd/widget-form.xsd b/framework/widget/dtd/widget-form.xsd index 34300d0cb8..0fdc98353d 100644 --- a/framework/widget/dtd/widget-form.xsd +++ b/framework/widget/dtd/widget-form.xsd @@ -925,6 +925,16 @@ under the License. + + + + The condition-group regroup search criterias together. + Each group member will be gathered with AND operator + Every defined groups will be joined each other with OR operator + Any ungrouped condition will be added with AND operator + + + diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormField.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormField.java index 30fe3c8cda..98a82ced1a 100644 --- a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormField.java +++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormField.java @@ -144,6 +144,7 @@ public class ModelFormField { private final String widgetStyle; private final String parentFormName; private final String tabindex; + private final String conditionGroup; private ModelFormField(ModelFormFieldBuilder builder) { this.action = builder.getAction(); @@ -197,6 +198,7 @@ public class ModelFormField { this.widgetStyle = builder.getWidgetStyle(); this.parentFormName = builder.getParentFormName(); this.tabindex = builder.getTabindex(); + this.conditionGroup = builder.getConditionGroup(); } public FlexibleStringExpander getAction() { @@ -448,6 +450,10 @@ public class ModelFormField { return tabindex; } + public String getConditionGroup() { + return conditionGroup; + } + public Map getMap(Map context) { if (UtilValidate.isEmpty(this.mapAcsr)) { return this.modelForm.getDefaultMap(context); diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormFieldBuilder.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormFieldBuilder.java index 6ff0d218d5..61b8454045 100644 --- a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormFieldBuilder.java +++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormFieldBuilder.java @@ -111,6 +111,7 @@ public class ModelFormFieldBuilder { private String widgetStyle = ""; private String parentFormName = ""; private String tabindex = ""; + private String conditionGroup = ""; public ModelFormFieldBuilder() { } @@ -162,6 +163,7 @@ public class ModelFormFieldBuilder { this.widgetStyle = fieldElement.getAttribute("widget-style"); this.parentFormName = fieldElement.getAttribute("form-name"); this.tabindex = fieldElement.getAttribute("tabindex"); + this.conditionGroup = fieldElement.getAttribute("condition-group"); Element childElement = null; List subElements = UtilXml.childElementList(fieldElement); for (Element subElement : subElements) { @@ -277,6 +279,7 @@ public class ModelFormFieldBuilder { this.widgetStyle = modelFormField.getWidgetStyle(); this.parentFormName = modelFormField.getParentFormName(); this.tabindex = modelFormField.getTabindex(); + this.conditionGroup = modelFormField.getConditionGroup(); } public ModelFormFieldBuilder(ModelFormFieldBuilder builder) { @@ -318,6 +321,7 @@ public class ModelFormFieldBuilder { this.widgetStyle = builder.getWidgetStyle(); this.parentFormName = builder.getParentFormName(); this.tabindex = builder.getTabindex(); + this.conditionGroup = builder.getConditionGroup(); } public ModelFormFieldBuilder addOnChangeUpdateArea(UpdateArea onChangeUpdateArea) { @@ -494,6 +498,10 @@ public class ModelFormFieldBuilder { return tabindex; } + public String getConditionGroup() { + return conditionGroup; + } + private boolean induceFieldInfo(ModelForm modelForm, String defaultFieldType, ModelReader entityModelReader, DispatchContext dispatchContext) { if (induceFieldInfoFromEntityField(defaultFieldType, entityModelReader)) { return true; @@ -810,6 +818,9 @@ public class ModelFormFieldBuilder { if (UtilValidate.isNotEmpty(builder.getTabindex())) { this.tabindex = builder.getTabindex(); } + if (UtilValidate.isNotEmpty(builder.getConditionGroup())) { + this.conditionGroup = builder.getConditionGroup(); + } this.encodeOutput = builder.getEncodeOutput(); this.position = builder.getPosition(); this.requiredField = builder.getRequiredField(); @@ -1000,4 +1011,8 @@ public class ModelFormFieldBuilder { this.tabindex = tabindex; return this; } + public ModelFormFieldBuilder setConditionGroup(String conditionGroup) { + this.conditionGroup = conditionGroup; + return this; + } } diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroFormRenderer.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroFormRenderer.java index 6ec2004d60..6eba07a117 100644 --- a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroFormRenderer.java +++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroFormRenderer.java @@ -774,6 +774,7 @@ public final class MacroFormRenderer implements FormStringRenderer { ModelFormField modelFormField = dropDownField.getModelFormField(); ModelForm modelForm = modelFormField.getModelForm(); String currentValue = modelFormField.getEntry(context); + String conditionGroup = modelFormField.getConditionGroup(); List allOptionValues = dropDownField.getAllOptionValues(context, WidgetWorker.getDelegator(context)); ModelFormField.AutoComplete autoComplete = dropDownField.getAutoComplete(); String event = modelFormField.getEvent(); @@ -1000,6 +1001,8 @@ public final class MacroFormRenderer implements FormStringRenderer { sr.append(ignoreCase); sr.append("\" fullSearch=\""); sr.append(fullSearch); + sr.append("\" conditionGroup=\""); + sr.append(conditionGroup); sr.append("\" tabindex=\""); sr.append(tabindex); sr.append("\" />"); @@ -1014,6 +1017,7 @@ public final class MacroFormRenderer implements FormStringRenderer { public void renderCheckField(Appendable writer, Map context, CheckField checkField) throws IOException { ModelFormField modelFormField = checkField.getModelFormField(); String currentValue = modelFormField.getEntry(context); + String conditionGroup = modelFormField.getConditionGroup(); Boolean allChecked = checkField.isAllChecked(context); String id = modelFormField.getCurrentContainerId(context); String className = ""; @@ -1051,6 +1055,8 @@ public final class MacroFormRenderer implements FormStringRenderer { sr.append(alert); sr.append("\" id=\""); sr.append(id); + sr.append("\" conditionGroup=\""); + sr.append(conditionGroup); sr.append("\" allChecked="); sr.append((allChecked != null ? Boolean.toString(allChecked) : "\"\"")); sr.append(" currentValue=\""); @@ -1076,6 +1082,7 @@ public final class MacroFormRenderer implements FormStringRenderer { ModelFormField modelFormField = radioField.getModelFormField(); List allOptionValues = radioField.getAllOptionValues(context, WidgetWorker.getDelegator(context)); String currentValue = modelFormField.getEntry(context); + String conditionGroup = modelFormField.getConditionGroup(); String className = ""; String alert = "false"; String name = modelFormField.getParameterName(context); @@ -1123,6 +1130,8 @@ public final class MacroFormRenderer implements FormStringRenderer { if (action != null) { sr.append(action); } + sr.append("\" conditionGroup=\""); + sr.append(conditionGroup); sr.append("\" tabindex=\""); sr.append(tabindex); sr.append("\" />"); @@ -1243,12 +1252,15 @@ public final class MacroFormRenderer implements FormStringRenderer { public void renderHiddenField(Appendable writer, Map context, ModelFormField modelFormField, String value) throws IOException { String name = modelFormField.getParameterName(context); String action = modelFormField.getAction(context); + String conditionGroup = modelFormField.getConditionGroup(); String event = modelFormField.getEvent(); String id = modelFormField.getCurrentContainerId(context); StringWriter sr = new StringWriter(); sr.append("<@renderHiddenField "); sr.append(" name=\""); sr.append(name); + sr.append("\" conditionGroup=\""); + sr.append(conditionGroup); sr.append("\" value=\""); sr.append(value); sr.append("\" id=\""); @@ -1788,6 +1800,7 @@ public final class MacroFormRenderer implements FormStringRenderer { public void renderTextFindField(Appendable writer, Map context, TextFindField textFindField) throws IOException { ModelFormField modelFormField = textFindField.getModelFormField(); String defaultOption = textFindField.getDefaultOption(context); + String conditionGroup = modelFormField.getConditionGroup(); String className = ""; String alert = "false"; String opEquals = ""; @@ -1869,6 +1882,8 @@ public final class MacroFormRenderer implements FormStringRenderer { sr.append(ignoreCase); sr.append("\" tabindex=\""); sr.append(tabindex); + sr.append("\" conditionGroup=\""); + sr.append(conditionGroup); sr.append("\" />"); executeMacro(writer, sr.toString()); this.appendTooltip(writer, context, modelFormField); @@ -1882,6 +1897,7 @@ public final class MacroFormRenderer implements FormStringRenderer { String opGreaterThanEquals = UtilProperties.getMessage("conditionalUiLabels", "greater_than_equals", locale); String opLessThan = UtilProperties.getMessage("conditionalUiLabels", "less_than", locale); String opLessThanEquals = UtilProperties.getMessage("conditionalUiLabels", "less_than_equals", locale); + String conditionGroup = modelFormField.getConditionGroup(); String className = ""; String alert = "false"; if (UtilValidate.isNotEmpty(modelFormField.getWidgetStyle())) { @@ -1950,6 +1966,8 @@ public final class MacroFormRenderer implements FormStringRenderer { sr.append(value2); sr.append("\" defaultOptionThru=\""); sr.append(defaultOptionThru); + sr.append("\" conditionGroup=\""); + sr.append(conditionGroup); sr.append("\" tabindex=\""); sr.append(tabindex); sr.append("\" />"); @@ -1968,6 +1986,7 @@ public final class MacroFormRenderer implements FormStringRenderer { String opUpToDay = UtilProperties.getMessage("conditionalUiLabels", "up_to_day", locale); String opUpThruDay = UtilProperties.getMessage("conditionalUiLabels", "up_thru_day", locale); String opIsEmpty = UtilProperties.getMessage("conditionalUiLabels", "is_empty", locale); + String conditionGroup = modelFormField.getConditionGroup(); Map uiLabelMap = UtilGenerics.checkMap(context.get("uiLabelMap")); if (uiLabelMap == null) { Debug.logWarning("Could not find uiLabelMap in context", module); @@ -2066,6 +2085,8 @@ public final class MacroFormRenderer implements FormStringRenderer { sr.append(defaultDateTimeString); sr.append("\" imgSrc=\""); sr.append(imgSrc.toString()); + sr.append("\" conditionGroup=\""); + sr.append(conditionGroup); sr.append("\" localizedIconTitle=\""); sr.append(localizedIconTitle); sr.append("\" titleStyle=\""); @@ -2102,6 +2123,7 @@ public final class MacroFormRenderer implements FormStringRenderer { public void renderLookupField(Appendable writer, Map context, LookupField lookupField) throws IOException { ModelFormField modelFormField = lookupField.getModelFormField(); String lookupFieldFormName = lookupField.getFormName(context); + String conditionGroup = modelFormField.getConditionGroup(); String className = ""; String alert = "false"; if (UtilValidate.isNotEmpty(modelFormField.getWidgetStyle())) { @@ -2275,6 +2297,8 @@ public final class MacroFormRenderer implements FormStringRenderer { sr.append(Boolean.toString(isInitiallyCollapsed)); sr.append("\" lastViewName=\""); sr.append(lastViewName); + sr.append("\" conditionGroup=\""); + sr.append(conditionGroup); sr.append("\" tabindex=\""); sr.append(tabindex); sr.append("\" delegatorName=\""); diff --git a/themes/common-theme/template/macro/CsvFormMacroLibrary.ftl b/themes/common-theme/template/macro/CsvFormMacroLibrary.ftl index 6c143e05ab..7661a3504a 100644 --- a/themes/common-theme/template/macro/CsvFormMacroLibrary.ftl +++ b/themes/common-theme/template/macro/CsvFormMacroLibrary.ftl @@ -30,7 +30,7 @@ under the License. <#macro renderDateTimeField name className alert title value size maxlength id dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName mask="" event="" action="" step="" timeValues="" tabindex="" ><@renderField value /> -<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch tabindex> +<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch conditionGroup tabindex> <#if currentValue?has_content && firstInList?has_content> <@renderField explicitDescription /> <#else> @@ -41,13 +41,13 @@ under the License. <#macro renderTooltip tooltip tooltipStyle> -<#macro renderCheckField items className alert id allChecked currentValue name event action tabindex> -<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action tabindex> +<#macro renderCheckField items className alert id allChecked currentValue name event action conditionGroup tabindex> +<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action conditionGroup tabindex> <#macro renderSubmitField buttonType className alert formName title name event action imgSrc confirmation containerId ajaxUrl tabindex> <#macro renderResetField className alert name title> -<#macro renderHiddenField name value id event action> +<#macro renderHiddenField name conditionGroup value id event action> <#macro renderIgnoredField> <#macro renderFieldTitle style title id="" fieldHelpText="" for=""><@renderField title />, @@ -97,15 +97,15 @@ under the License. <#macro renderFormatEmptySpace>  -<#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase tabindex><@renderField value /> +<#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase conditionGroup tabindex><@renderField value /> -<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty tabindex><@renderField value /> +<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty conditionGroup tabindex><@renderField value /> -<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru tabindex> +<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru conditionGroup tabindex> <@renderField value /> -<#macro renderLookupField name formName fieldFormName className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default">> +<#macro renderLookupField name formName fieldFormName conditionGroup className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default">> <#macro renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl paginateFirstLabel paginatePreviousStyle ajaxPreviousUrl previousUrl paginatePreviousLabel pageLabel ajaxSelectUrl selectUrl ajaxSelectSizeUrl selectSizeUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl paginateNextLabel paginateLastStyle ajaxLastUrl lastUrl paginateLastLabel paginateViewSizeLabel> <#macro renderFileField className alert name value size maxlength autocomplete tabindex><@renderField value /> <#macro renderPasswordField className alert name value size maxlength id autocomplete tabindex> diff --git a/themes/common-theme/template/macro/FoFormMacroLibrary.ftl b/themes/common-theme/template/macro/FoFormMacroLibrary.ftl index b19bffef96..5ba1f75249 100644 --- a/themes/common-theme/template/macro/FoFormMacroLibrary.ftl +++ b/themes/common-theme/template/macro/FoFormMacroLibrary.ftl @@ -57,7 +57,7 @@ under the License. <#macro renderDateTimeField name className alert title value size maxlength step timeValues id event action dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName mask="" event="" action="" step="" timeValues="" tabindex=""><@makeBlock className value /> -<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch tabindex firstInList="" currentValue=""> +<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignorease fullSearch conditionGroup tabindex firstInList="" currentValue=""> <#if currentValue?has_content && firstInList?has_content> <@makeBlock "" explicitDescription /> <#else> @@ -67,13 +67,13 @@ under the License. -<#macro renderCheckField items className alert id allChecked currentValue name event action tabindex><@makeBlock "" "" /> -<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action tabindex><@makeBlock "" "" /> +<#macro renderCheckField items className alert id allChecked currentValue name event action conditionGroup tabindex><@makeBlock "" "" /> +<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action conditionGroup tabindex><@makeBlock "" "" /> <#macro renderSubmitField buttonType className alert formName title name event action imgSrc confirmation containerId ajaxUrl tabindex><@makeBlock "" "" /> <#macro renderResetField className alert name title><@makeBlock "" "" /> -<#macro renderHiddenField name value id event action> +<#macro renderHiddenField name conditionGroup value id event action> <#macro renderIgnoredField> <#macro renderFieldTitle style title id fieldHelpText="" for="">>${title?default("")?replace(" ", " ")} @@ -121,16 +121,16 @@ under the License. <#macro renderFormatEmptySpace> <@makeBlock "" " " /> -<#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase tabindex><@makeBlock className value/> +<#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase conditionGroup tabindex><@makeBlock className value/> -<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty tabindex> +<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty conditionGroup tabindex> <@makeBlock className value /> -<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru tabindex> +<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru conditionGroup tabindex> <@makeBlock className value /> -<#macro renderLookupField name formName fieldFormName className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default"> +<#macro renderLookupField name formName fieldFormName conditionGroup className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default"> <#macro renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl paginateFirstLabel paginatePreviousStyle ajaxPreviousUrl previousUrl paginatePreviousLabel pageLabel ajaxSelectUrl selectUrl ajaxSelectSizeUrl selectSizeUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl paginateNextLabel paginateLastStyle ajaxLastUrl lastUrl paginateLastLabel paginateViewSizeLabel> <#macro renderFileField className alert name value size maxlength autocomplete tabindex><@makeBlock className value /> <#macro renderPasswordField className alert name value size maxlength id autocomplete tabindex><@makeBlock className "" /> diff --git a/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl b/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl index 510273af93..b9aef343db 100644 --- a/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl +++ b/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl @@ -207,7 +207,10 @@ under the License. -<#macro renderDropDownField name className alert id formName otherFieldName action explicitDescription options fieldName otherFieldName otherValue otherFieldSize ajaxEnabled ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch tabindex="" multiple="" event="" size="" firstInList="" currentValue="" allowEmpty="" dDFCurrent="" noCurrentSelectedKey=""> +<#macro renderDropDownField name className alert id formName otherFieldName action explicitDescription options fieldName otherFieldName otherValue otherFieldSize ajaxEnabled ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch conditionGroup tabindex="" multiple="" event="" size="" firstInList="" currentValue="" allowEmpty="" dDFCurrent="" noCurrentSelectedKey=""> + <#if conditionGroup?has_content> + + + <#list items as item> ><#rt/> id="${id}"<#rt/><#if tabindex?has_content> tabindex="${tabindex}"<#rt/> @@ -261,7 +267,10 @@ under the License. -<#macro renderRadioField items className alert name action currentValue="" noCurrentSelectedKey="" event="" tabindex=""> +<#macro renderRadioField items className alert name action conditionGroup currentValue="" noCurrentSelectedKey="" event="" tabindex=""> + <#if conditionGroup?has_content> + + <#list items as item> ><#rt/> <#if currentValue==item.key> checked="checked"<#if tabindex?has_content> tabindex="${tabindex}"<#rt/> @@ -293,7 +302,10 @@ under the License. name="${name}"<#if title?has_content> value="${title}"/> -<#macro renderHiddenField name value="" id="" event="" action=""> +<#macro renderHiddenField name conditionGroup value="" id="" event="" action=""> + <#if conditionGroup?has_content> + + value="${value}"<#if id?has_content> id="${id}"<#if event?has_content && action?has_content> ${event}="${action}"/> @@ -449,7 +461,10 @@ under the License. <#macro renderFormatEmptySpace>  -<#macro renderTextFindField name defaultOption opBeginsWith opContains opIsEmpty opNotEqual className alert hideIgnoreCase ignCase ignoreCase value="" opEquals="" size="" maxlength="" autocomplete="" titleStyle="" tabindex=""> +<#macro renderTextFindField name defaultOption opBeginsWith opContains opIsEmpty opNotEqual className alert hideIgnoreCase ignCase ignoreCase conditionGroup value="" opEquals="" size="" maxlength="" autocomplete="" titleStyle="" tabindex=""> + <#if conditionGroup?has_content> + + <#if opEquals?has_content> + <#if name?has_content> name="${name?html}_fld0_value"<#if localizedInputTitle?has_content> title="${localizedInputTitle}"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"/><#if tabindex?has_content> tabindex="${tabindex}"<#rt/> <#if dateType != "time"> @@ -550,7 +568,10 @@ under the License. -<#macro renderRangeFindField className alert value defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals defaultOptionThru name="" size="" maxlength="" autocomplete="" titleStyle="" value2="" tabindex=""> +<#macro renderRangeFindField className alert value defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals defaultOptionThru conditionGroup name="" size="" maxlength="" autocomplete="" titleStyle="" value2="" tabindex=""> + <#if conditionGroup?has_content> + + <#if name?has_content>name="${name}_fld0_value"<#if value?has_content> value="${value}"<#if size?has_content> size="${size}"<#if maxlength?has_content> maxlength="${maxlength}"<#if autocomplete?has_content> autocomplete="off"/><#if tabindex?has_content> tabindex="${tabindex}"<#rt/> <#if titleStyle?has_content> <#rt/> @@ -612,7 +633,7 @@ Parameter: lastViewName, String, optional - If the ajaxEnabled parameter is true Parameter: tabindex, String, optional - HTML tabindex number. Parameter: delegatorName, String, optional - name of the delegator in context. --> -<#macro renderLookupField name formName fieldFormName className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width=modelTheme.getLookupWidth() height=modelTheme.getLookupHeight() position=modelTheme.getLookupPosition() fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default"> +<#macro renderLookupField name formName fieldFormName conditionGroup className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width=modelTheme.getLookupWidth() height=modelTheme.getLookupHeight() position=modelTheme.getLookupPosition() fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default"> <#if Static["org.apache.ofbiz.widget.model.ModelWidget"].widgetBoundaryCommentsEnabled(context)><#-- context is always null here, but this is handled in widgetBoundaryCommentsEnabled --> @@ -629,6 +650,9 @@ Parameter: delegatorName, String, optional - name of the delegator in context. <#if ajaxEnabled?has_content && ajaxEnabled && (presentation?has_content && "window" == presentation)> <#local ajaxUrl = ajaxUrl + "&_LAST_VIEW_NAME_=" + lastViewName /> + <#if conditionGroup?has_content> + + <#if size?has_content && size=="0"> name="${name}"<#if tabindex?has_content> tabindex="${tabindex}"<#rt/> diff --git a/themes/common-theme/template/macro/TextFormMacroLibrary.ftl b/themes/common-theme/template/macro/TextFormMacroLibrary.ftl index be4a9a872e..6e38e7d058 100644 --- a/themes/common-theme/template/macro/TextFormMacroLibrary.ftl +++ b/themes/common-theme/template/macro/TextFormMacroLibrary.ftl @@ -30,7 +30,7 @@ under the License. <#macro renderDateTimeField name className alert title value size maxlength id dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName mask="" event="" action="" step="" timeValues="" tabindex="" ><@renderField value /> -<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch tabindex> +<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch conditionGroup tabindex> <#if currentValue?has_content && firstInList?has_content> <@renderField explicitDescription /> <#else> @@ -41,13 +41,13 @@ under the License. <#macro renderTooltip tooltip tooltipStyle> -<#macro renderCheckField items className alert id allChecked currentValue name event action tabindex> -<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action tabindex> +<#macro renderCheckField items className alert id allChecked currentValue name event action conditionGroup tabindex> +<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action conditionGroup tabindex> <#macro renderSubmitField buttonType className alert formName title name event action imgSrc confirmation containerId ajaxUrl tabindex> <#macro renderResetField className alert name title> -<#macro renderHiddenField name value id event action> +<#macro renderHiddenField name conditionGroup value id event action> <#macro renderIgnoredField> <#macro renderFieldTitle style title id fieldHelpText="" for=""><@renderField title /> @@ -97,15 +97,15 @@ under the License. <#macro renderFormatEmptySpace>  -<#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase tabindex><@renderField value /> +<#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase conditionGroup tabindex><@renderField value /> -<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty tabindex><@renderField value /> +<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty conditionGroup tabindex><@renderField value /> -<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru tabindex> +<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru conditionGroup tabindex> <@renderField value /> -<#macro renderLookupField name formName fieldFormName className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default">><@renderField value /> +<#macro renderLookupField name formName fieldFormName conditionGroup className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default">><@renderField value /> <#macro renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl paginateFirstLabel paginatePreviousStyle ajaxPreviousUrl previousUrl paginatePreviousLabel pageLabel ajaxSelectUrl selectUrl ajaxSelectSizeUrl selectSizeUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl paginateNextLabel paginateLastStyle ajaxLastUrl lastUrl paginateLastLabel paginateViewSizeLabel> <#macro renderFileField className alert name value size maxlength autocomplete tabindex><@renderField value /> <#macro renderPasswordField className alert name value size maxlength id autocomplete tabindex> diff --git a/themes/common-theme/template/macro/XlsFormMacroLibrary.ftl b/themes/common-theme/template/macro/XlsFormMacroLibrary.ftl index f3737aec79..f26fd01bfc 100644 --- a/themes/common-theme/template/macro/XlsFormMacroLibrary.ftl +++ b/themes/common-theme/template/macro/XlsFormMacroLibrary.ftl @@ -40,17 +40,17 @@ under the License. <#else><@renderItemField value "dtf" className/> -<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch tabindex><@renderItemField explicitDescription "txf" className/> +<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch conditionGroup tabindex><@renderItemField explicitDescription "txf" className/> -<#macro renderCheckField items className alert id allChecked currentValue name event action tabindex><@renderItemField currentValue "txf" className/> +<#macro renderCheckField items className alert id allChecked currentValue name event action conditionGroup tabindex><@renderItemField currentValue "txf" className/> -<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action tabindex><@renderItemField currentValue "txf" className/> +<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action conditionGroup tabindex><@renderItemField currentValue "txf" className/> <#macro renderSubmitField buttonType className alert formName title name event action imgSrc confirmation containerId ajaxUrl tabindex> <#macro renderResetField className alert name title> -<#macro renderHiddenField name value id event action> +<#macro renderHiddenField name conditionGroup value id event action> <#macro renderIgnoredField> @@ -112,13 +112,13 @@ under the License. <#macro renderFormatEmptySpace><@renderItemField "" "txf"/> -<#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase tabindex> +<#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase conditionGroup tabindex> -<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty tabindex> +<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty conditionGroup tabindex> -<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru tabindex> +<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru conditionGroup tabindex> -<#macro renderLookupField name formName fieldFormName className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default">><@renderItemField value "txf" className/> +<#macro renderLookupField name formName fieldFormName conditionGroup className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default">><@renderItemField value "txf" className/> <#macro renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl paginateFirstLabel paginatePreviousStyle ajaxPreviousUrl previousUrl paginatePreviousLabel pageLabel ajaxSelectUrl selectUrl ajaxSelectSizeUrl selectSizeUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl paginateNextLabel paginateLastStyle ajaxLastUrl lastUrl paginateLastLabel paginateViewSizeLabel> diff --git a/themes/common-theme/template/macro/XmlFormMacroLibrary.ftl b/themes/common-theme/template/macro/XmlFormMacroLibrary.ftl index 2d821e5fd5..8a3b484dfe 100644 --- a/themes/common-theme/template/macro/XmlFormMacroLibrary.ftl +++ b/themes/common-theme/template/macro/XmlFormMacroLibrary.ftl @@ -46,16 +46,16 @@ under the License. <#macro renderDateTimeField name className alert title value size maxlength id dateType shortDateInput timeDropdownParamName defaultDateTimeString localizedIconTitle timeDropdown timeHourName classString hour1 hour2 timeMinutesName minutes isTwelveHour ampmName amSelected pmSelected compositeType formName mask="" event="" action="" step="" timeValues="" tabindex="" ><@renderField value/> -<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch tabindex> +<#macro renderDropDownField name className alert id multiple formName otherFieldName event action size firstInList currentValue explicitDescription allowEmpty options fieldName otherFieldName otherValue otherFieldSize dDFCurrent ajaxEnabled noCurrentSelectedKey ajaxOptions frequency minChars choices autoSelect partialSearch partialChars ignoreCase fullSearch conditionGroup tabindex> -<#macro renderCheckField items className alert id allChecked currentValue name event action tabindex> -<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action tabindex> +<#macro renderCheckField items className alert id allChecked currentValue name event action conditionGroup tabindex> +<#macro renderRadioField items className alert currentValue noCurrentSelectedKey name event action conditionGroup tabindex> <#macro renderSubmitField buttonType className alert formName title name event action imgSrc confirmation containerId ajaxUrl tabindex> <#macro renderResetField className alert name title> -<#macro renderHiddenField name value id event action> +<#macro renderHiddenField name conditionGroup value id event action> <#macro renderIgnoredField> <#macro renderFieldTitle style title id fieldHelpText="" for=""> @@ -92,12 +92,12 @@ under the License. <#macro renderTextFindField name value defaultOption opEquals opBeginsWith opContains opIsEmpty opNotEqual className alert size maxlength autocomplete titleStyle hideIgnoreCase ignCase ignoreCase tabindex><@renderField value/> -<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty tabindex> +<#macro renderDateFindField className alert name localizedInputTitle value value2 size maxlength dateType formName defaultDateTimeString imgSrc localizedIconTitle titleStyle defaultOptionFrom defaultOptionThru opEquals opSameDay opGreaterThanFromDayStart opGreaterThan opGreaterThan opLessThan opUpToDay opUpThruDay opIsEmpty conditionGroup tabindex> -<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru tabindex> +<#macro renderRangeFindField className alert name value size maxlength autocomplete titleStyle defaultOptionFrom opEquals opGreaterThan opGreaterThanEquals opLessThan opLessThanEquals value2 defaultOptionThru conditionGroup tabindex> -<#macro renderLookupField name formName fieldFormName className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default">> +<#macro renderLookupField name formName fieldFormName conditionGroup className="" alert="false" value="" size="" maxlength="" id="" event="" action="" readonly=false autocomplete="" descriptionFieldName="" targetParameterIter="" imgSrc="" ajaxUrl="" ajaxEnabled=javaScriptEnabled presentation="layer" width="" height="" position="" fadeBackground="true" clearText="" showDescription="" initiallyCollapsed="" lastViewName="main" tabindex="" delegatorName="default">> <#macro renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl paginateFirstLabel paginatePreviousStyle ajaxPreviousUrl previousUrl paginatePreviousLabel pageLabel ajaxSelectUrl selectUrl ajaxSelectSizeUrl selectSizeUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl paginateNextLabel paginateLastStyle ajaxLastUrl lastUrl paginateLastLabel paginateViewSizeLabel> <#macro renderFileField className alert name value size maxlength autocomplete tabindex> <#macro renderPasswordField className alert name value size maxlength id autocomplete tabindex>