diff --git a/framework/common/webcommon/includes/htmlTemplate.ftl b/framework/common/webcommon/includes/htmlTemplate.ftl index c9d9a769c5..fde117c1ae 100644 --- a/framework/common/webcommon/includes/htmlTemplate.ftl +++ b/framework/common/webcommon/includes/htmlTemplate.ftl @@ -29,23 +29,11 @@ under the License. <#if (!id?has_content)> <#local id = Static["org.ofbiz.base.util.UtilHttp"].getNextUniqueId(request) /> - <#if (!ajaxUrl?has_content)> - <#local ajaxUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, fieldFormName)/> - <#local ajaxUrl = id + "," + ajaxUrl + ",ajaxLookup=Y" /> - - <#if (!showDescription?has_content)> - <#local showDescription = Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue("widget.properties", "widget.lookup.showDescription", "N")> - <#if "Y" == showDescription> - <#local showDescription = "true" /> - <#else> - <#local showDescription = "false" /> - - - <#if "true" == readonly> - <#local readonly = true/> - <#else> - <#local readonly = false /> - + <#if "true" == readonly> + <#local readonly = true/> + <#else> + <#local readonly = false /> + <@renderLookupField name formName fieldFormName className alert value size maxlength id event action readonly autocomplete descriptionFieldName targetParameterIter imgSrc ajaxUrl ajaxEnabled presentation width height position fadeBackground clearText showDescription initiallyCollapsed/> @@ -75,4 +63,4 @@ under the License. <@renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl uiLabelMap.CommonFirst paginatePreviousStyle ajaxPreviousUrl previousUrl uiLabelMap.CommonPrevious uiLabelMap.CommonPage ajaxSelectUrl selectUrl ajaxSelectSizeUrl selectSizeUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl uiLabelMap.CommonNext paginateLastStyle ajaxLastUrl lastUrl uiLabelMap.CommonLast uiLabelMap.CommonItemsPerPage/> - \ No newline at end of file +