Author: musachy
Date: Wed Jun 20 11:46:47 2007
New Revision: 549187

URL: http://svn.apache.org/viewvc?view=rev&rev=549187
Log:
WW-1888 Forms generate invalid xhtml using the xhtml template
* remove "namespace" attribute in generated html for form tag

Modified:
    struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl
    
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-11.txt
    
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt
    
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-6.txt

Modified: struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl?view=diff&rev=549187&r1=549186&r2=549187
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl 
(original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl Wed 
Jun 20 11:46:47 2007
@@ -6,9 +6,6 @@
        </#if>
 </#if>
 <form<#rt/>
-<#if parameters.namespace?exists && parameters.validate?exists>
- namespace="${parameters.namespace?html}"<#rt/>
-</#if>
 <#if parameters.id?exists>
  id="${parameters.id?html}"<#rt/>
 </#if>

Modified: 
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-11.txt
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-11.txt?view=diff&rev=549187&r1=549186&r2=549187
==============================================================================
--- 
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-11.txt
 (original)
+++ 
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-11.txt
 Wed Jun 20 11:46:47 2007
@@ -1,6 +1,6 @@
 <script type="text/javascript" src="/struts/xhtml/validation.js"></script>
 <script type="text/javascript" src="/struts/utils.js"></script>
-<form namespace="" id="myAction" name="myForm" onsubmit="submitMe(); return 
validateForm_myAction();" action="/myAction.action" method="post" 
enctype="myEncType" title="mytitle" accept-charset="UTF-8">
+<form id="myAction" name="myForm" onsubmit="submitMe(); return 
validateForm_myAction();" action="/myAction.action" method="post" 
enctype="myEncType" title="mytitle" accept-charset="UTF-8">
 <table class="wwFormTable"> <tr>
     <td class="tdLabel"></td>
     <td>       <script language="javascript" 
src="/struts/optiontransferselect.js"></script>

Modified: 
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt?view=diff&rev=549187&r1=549186&r2=549187
==============================================================================
--- 
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt
 (original)
+++ 
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt
 Wed Jun 20 11:46:47 2007
@@ -1,6 +1,6 @@
 <script type="text/javascript" src="/struts/xhtml/validation.js"></script>
 <script type="text/javascript "src="/struts/utils.js"></script>
-<form namespace="" id="myAction" name="myForm" onsubmit="submitMe(); return 
validateForm_myAction();" action="/myAction.action" method="post" 
enctype="myEncType" title="mytitle" accept-charset="UTF-8">
+<form id="myAction" name="myForm" onsubmit="submitMe(); return 
validateForm_myAction();" action="/myAction.action" method="post" 
enctype="myEncType" title="mytitle" accept-charset="UTF-8">
 <table class="wwFormTable"> <tr>
     <td class="tdLabel"></td>
     <td>       <script language="javascript" 
src="/struts/optiontransferselect.js"></script>

Modified: 
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-6.txt
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-6.txt?view=diff&rev=549187&r1=549186&r2=549187
==============================================================================
--- 
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-6.txt
 (original)
+++ 
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-6.txt
 Wed Jun 20 11:46:47 2007
@@ -1,4 +1,4 @@
-<form namespace="" id="myAction" name="myForm" onsubmit="submitMe(); return 
true;" action="myAction" method="post" enctype="myEncType" title="mytitle">
+<form id="myAction" name="myForm" onsubmit="submitMe(); return true;" 
action="myAction" method="post" enctype="myEncType" title="mytitle">
 <table class="wwFormTable"> <tr>
     <td class="tdLabel"></td>
     <td>       <script language="javascript" 
src="/struts/optiontransferselect.js"></script>


Reply via email to