diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/inputtransferselect.js b/core/src/main/resources/org/apache/struts2/static/inputtransferselect.js similarity index 100% rename from plugins/dojo/src/main/resources/org/apache/struts2/static/inputtransferselect.js rename to core/src/main/resources/org/apache/struts2/static/inputtransferselect.js diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/optiontransferselect.js b/core/src/main/resources/org/apache/struts2/static/optiontransferselect.js similarity index 100% rename from plugins/dojo/src/main/resources/org/apache/struts2/static/optiontransferselect.js rename to core/src/main/resources/org/apache/struts2/static/optiontransferselect.js diff --git a/plugins/dojo/src/main/resources/org/apache/struts2/static/validationClient.js b/core/src/main/resources/org/apache/struts2/static/validationClient.js similarity index 100% rename from plugins/dojo/src/main/resources/org/apache/struts2/static/validationClient.js rename to core/src/main/resources/org/apache/struts2/static/validationClient.js diff --git a/plugins/dojo/src/main/resources/template/ajax/autocompleter.ftl b/plugins/dojo/src/main/resources/template/ajax/autocompleter.ftl index 0622914a4..62a6d16ed 100644 --- a/plugins/dojo/src/main/resources/template/ajax/autocompleter.ftl +++ b/plugins/dojo/src/main/resources/template/ajax/autocompleter.ftl @@ -1,3 +1,4 @@ +<#include "/${parameters.templateDir}/ajax/controlheader.ftl" /> <#if parameters.href?exists> dataUrl="${parameters.href}"<#rt/> @@ -122,6 +123,8 @@ @s.iterator> #if> - +<#if parameters.label?if_exists != ""> + <#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" /> +#if> diff --git a/plugins/dojo/src/main/resources/template/ajax/controlheader.ftl b/plugins/dojo/src/main/resources/template/ajax/controlheader.ftl index ee1fcc541..1ac8ce333 100644 --- a/plugins/dojo/src/main/resources/template/ajax/controlheader.ftl +++ b/plugins/dojo/src/main/resources/template/ajax/controlheader.ftl @@ -1,4 +1,6 @@ -<#--include "/${parameters.templateDir}/xhtml/controlheader-core.ftl" /--> +<#if parameters.label?if_exists != ""> + <#include "/${parameters.templateDir}/xhtml/controlheader.ftl" /> +#if> <#if parameters.form?exists && parameters.form.validate?default(false) == true> <#-- can't mutate the data model in freemarker --> <#if parameters.onblur?exists> diff --git a/plugins/dojo/src/main/resources/template/ajax/datetimepicker.ftl b/plugins/dojo/src/main/resources/template/ajax/datetimepicker.ftl index b7b3ed627..cf151588a 100644 --- a/plugins/dojo/src/main/resources/template/ajax/datetimepicker.ftl +++ b/plugins/dojo/src/main/resources/template/ajax/datetimepicker.ftl @@ -1,6 +1,7 @@ + +<#include "/${parameters.templateDir}/ajax/controlheader.ftl" />