struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From musa...@apache.org
Subject svn commit: r511303 - in /struts/struts2/trunk/core/src/main/resources/template: ajax/form.ftl css_xhtml/form-validate.ftl xhtml/form-validate.ftl
Date Sat, 24 Feb 2007 16:50:09 GMT
Author: musachy
Date: Sat Feb 24 08:50:09 2007
New Revision: 511303

URL: http://svn.apache.org/viewvc?view=rev&rev=511303
Log:
WW-1671 templates don't specify type="text/javascript"; break W3C validation

Modified:
    struts/struts2/trunk/core/src/main/resources/template/ajax/form.ftl
    struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl
    struts/struts2/trunk/core/src/main/resources/template/xhtml/form-validate.ftl

Modified: struts/struts2/trunk/core/src/main/resources/template/ajax/form.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/ajax/form.ftl?view=diff&rev=511303&r1=511302&r2=511303
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/ajax/form.ftl (original)
+++ struts/struts2/trunk/core/src/main/resources/template/ajax/form.ftl Sat Feb 24 08:50:09
2007
@@ -1,9 +1,9 @@
 <#if parameters.validate?exists>
-<script src="${base}/struts/validationClient.js"></script>
-<script src="${base}/dwr/interface/validator.js"></script>
-<script src="${base}/dwr/engine.js"></script>
-<script src="${base}/struts/ajax/validation.js"></script>
-<script src="${base}/struts/${themeProperties.parent}/validation.js"></script>
+<script type="text/javascript" src="${base}/struts/validationClient.js"></script>
+<script type="text/javascript" src="${base}/dwr/interface/validator.js"></script>
+<script type="text/javascript" src="${base}/dwr/engine.js"></script>
+<script type="text/javascript" src="${base}/struts/ajax/validation.js"></script>
+<script type="text/javascript" src="${base}/struts/${themeProperties.parent}/validation.js"></script>
 </#if>
 <form<#rt/>
 <#if parameters.namespace?exists>

Modified: struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl?view=diff&rev=511303&r1=511302&r2=511303
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl (original)
+++ struts/struts2/trunk/core/src/main/resources/template/css_xhtml/form-validate.ftl Sat
Feb 24 08:50:09 2007
@@ -1,5 +1,5 @@
 <#if parameters.validate?default(false) == true>
-<script src="${base}/struts/css_xhtml/validation.js" type="text/javascript"></script>
+<script type="text/javascript" src="${base}/struts/css_xhtml/validation.js" type="text/javascript"></script>
     <#if parameters.onsubmit?exists>
         ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.id}();")}
     <#else>

Modified: struts/struts2/trunk/core/src/main/resources/template/xhtml/form-validate.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/xhtml/form-validate.ftl?view=diff&rev=511303&r1=511302&r2=511303
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/xhtml/form-validate.ftl (original)
+++ struts/struts2/trunk/core/src/main/resources/template/xhtml/form-validate.ftl Sat Feb
24 08:50:09 2007
@@ -1,5 +1,5 @@
 <#if parameters.validate?default(false) == true>
-	<script src="${base}/struts/xhtml/validation.js"></script>
+	<script type="text/javascript" src="${base}/struts/xhtml/validation.js"></script>
 	<#if parameters.onsubmit?exists>
 		${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.id}();")}
 	<#else>



Mime
View raw message