struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12248] New: - <html:form focus doesn't work with indexed fields
Date Tue, 03 Sep 2002 08:24:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12248>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12248

<html:form focus doesn't work with indexed fields

           Summary: <html:form focus doesn't work with indexed fields
           Product: Struts
           Version: 0.5 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: mo@moaritz.de


"<html:form action="xyz" focus="positions[0].prod_id">" generates:

    <script language="JavaScript" type="text/javascript">
        <!--
        if
(document.forms["orderMainForm"].elements["positions"][0].prod_id.type != "hidden") 
           document.forms["orderMainForm"].elements["positions"][0].prod_id.focus()
        // -->
    </script>
which is wrong, the object must be addressed with 
document.forms["orderMainForm"].elements["positions[0].prod_id"].focus()

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


Mime
View raw message