Thanks Craig, I've been meaning to get back to that. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://struts-atlanta.open-tools.org
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Saturday, June 22, 2002 6:07 PM > To: [EMAIL PROTECTED] > Subject: cvs commit: > jakarta-struts/src/share/org/apache/struts/taglib/html FormTag.java > > > craigmcc 2002/06/22 15:06:33 > > Modified: src/share/org/apache/struts/taglib/html FormTag.java > Log: > Do not try to set focus on a hidden field. > > PR: Bugzilla #10005 > Submitted by: James Mitchell <jmitchtx at telocity.com> > > Revision Changes Path > 1.20 +13 -4 > jakarta-struts/src/share/org/apache/struts/taglib/html/FormTag.java > > Index: FormTag.java > =================================================================== > RCS file: > /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/F > ormTag.java,v > retrieving revision 1.19 > retrieving revision 1.20 > diff -u -r1.19 -r1.20 > --- FormTag.java 22 Mar 2002 23:47:18 -0000 1.19 > +++ FormTag.java 22 Jun 2002 22:06:33 -0000 1.20 > @@ -652,6 +652,15 @@ > results.append("<script language=\"JavaScript\""); > results.append(" type=\"text/javascript\">\r\n"); > results.append(" <!--\r\n"); > + results.append(" if (document.forms[\""); > + results.append(name); > + results.append("\"].elements[\""); > + results.append(tempFocus); > + results.append("\"]"); > + if (refocus.length() > 1) { > + results.append(refocus.toString()); > + } > + results.append(".type != \"hidden\") \r\n"); > results.append(" document.forms[\""); > results.append(name); > results.append("\"].elements[\""); > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>