You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by mr...@apache.org on 2005/06/22 18:23:21 UTC

svn commit: r192949 - /struts/taglib/trunk/src/java/org/apache/struts/taglib/html/FormTag.java

Author: mrdon
Date: Wed Jun 22 09:23:18 2005
New Revision: 192949

URL: http://svn.apache.org/viewcvs?rev=192949&view=rev
Log:
Reverting part of the fix for bug #35127 as it isn't necessary and fails 
with indexed properties

Modified:
    struts/taglib/trunk/src/java/org/apache/struts/taglib/html/FormTag.java

Modified: struts/taglib/trunk/src/java/org/apache/struts/taglib/html/FormTag.java
URL: http://svn.apache.org/viewcvs/struts/taglib/trunk/src/java/org/apache/struts/taglib/html/FormTag.java?rev=192949&r1=192948&r2=192949&view=diff
==============================================================================
--- struts/taglib/trunk/src/java/org/apache/struts/taglib/html/FormTag.java (original)
+++ struts/taglib/trunk/src/java/org/apache/struts/taglib/html/FormTag.java Wed Jun 22 09:23:18 2005
@@ -662,19 +662,11 @@
 
         // Construct the control name that will receive focus.
         // This does not include any index.
-        StringBuffer focusControl = new StringBuffer();
-        if (isXhtml()) {
-            focusControl.append("document.getElementById(\"");
-            focusControl.append(beanName);
-            focusControl.append("\").");
-            focusControl.append(this.focus);
-        } else {
-            focusControl.append("document.forms[\"");
-            focusControl.append(beanName);
-            focusControl.append("\"].elements[\"");
-            focusControl.append(this.focus);
-            focusControl.append("\"]");
-        }
+        StringBuffer focusControl = new StringBuffer("document.forms[\"");
+        focusControl.append(beanName);
+        focusControl.append("\"].elements[\"");
+        focusControl.append(this.focus);
+        focusControl.append("\"]");
 
         results.append("  var focusControl = ");
         results.append(focusControl.toString());



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org