You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/08/10 00:06:51 UTC
DO NOT REPLY [Bug 36107] New: -
form tag is rendered w/o name attribute causes client-side validation to fail
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36107>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36107
Summary: form tag is rendered w/o name attribute causes client-
side validation to fail
Product: Struts
Version: 1.2.7
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Validator Framework
AssignedTo: dev@struts.apache.org
ReportedBy: matt@raibledesigns.com
I'm using XHTML for my Struts tags, and when upgrading from Struts 1.2.4 to
1.2.7, it seems that the "name" attribute got dropped from the rendered HTML.
I'm fine with this, but the validator is not:
Error: formName has no properties
Source file: scripts/validator.jsp Line: 184
Line 184 is the 2nd of the two below:
var formName = form.getAttributeNode("name");
oRequired = eval('new ' + formName.value + '_required()');
Struts 1.2.4:
<form name="userForm" method="post" action="/appfuse/saveUser.html"
onsubmit="return validateUserForm(this)" id="userForm">
Struts 1.2.7:
<form method="post" action="/appfuse/saveUser.html" onsubmit="return
validateUserForm(this)" id="userForm">
I'm guessing I can workaround this bug by manually specifying a "name"
attribute, or by removing XHTML.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org