mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-1607
* Restore javascript files to core that were moved to the dojo plugin but were not related to dojo * Render a tr with cells for the ajaxtags if a "label" is specified * Fix wrong reference to dojo tooltip git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@519204 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<#include "/${parameters.templateDir}/ajax/controlheader.ftl" />
|
||||
<#if parameters.href?exists>
|
||||
<input dojoType="struts:ComboBox"<#rt/>
|
||||
dataUrl="${parameters.href}"<#rt/>
|
||||
@@ -122,6 +123,8 @@
|
||||
</@s.iterator>
|
||||
</select>
|
||||
</#if>
|
||||
|
||||
<#if parameters.label?if_exists != "">
|
||||
<#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />
|
||||
</#if>
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script type="text/javascript">
|
||||
dojo.require("dojo.widget.DatePicker");
|
||||
</script>
|
||||
</script>
|
||||
<#include "/${parameters.templateDir}/ajax/controlheader.ftl" />
|
||||
<div
|
||||
<#if parameters.type?if_exists == "date">
|
||||
dojoType="dropdowndatepicker"<#rt/>
|
||||
@@ -71,3 +72,6 @@
|
||||
saveFormat="rfc"<#rt/>
|
||||
<#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
|
||||
></div>
|
||||
<#if parameters.label?if_exists != "">
|
||||
<#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" />
|
||||
</#if>
|
||||
|
||||
@@ -83,7 +83,7 @@ dojo.require("dojo.event.connect");
|
||||
Code that will add javascript needed for tooltips
|
||||
--><#t/>
|
||||
<#lt/><!-- javascript that is needed for tooltips -->
|
||||
<#lt/><script type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
|
||||
<#lt/><script type="text/javascript">dojo.require("dojo.widget.Tooltip");dojo.require("dojo.fx.html");</script>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Dojo configuration
|
||||
djConfig = {
|
||||
baseRelativePath: "<@s.url includeParams='none' value='/struts/dojo' includeParams="none" encode='false'/>",
|
||||
isDebug: ${parameters.debug?default(false)},
|
||||
isDebug: ${parameters.debug?default(false)?string},
|
||||
bindEncoding: "${parameters.encoding}",
|
||||
debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user