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 2004/02/28 20:42:37 UTC
DO NOT REPLY [Bug 27316] New: -
Validator now requires a form entry in validation.xml for JavaScript
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=27316>.
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=27316
Validator now requires a form entry in validation.xml for JavaScript
Summary: Validator now requires a form entry in validation.xml
for JavaScript
Product: Struts
Version: Nightly Build
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Tiles framework
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: matt@raibledesigns.com
Before Struts 1.2.0 (test build), I could have the following in my JSP.
<html:javascript formName="personForm" cdata="false"
dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript"
src="<html:rewrite page="/scripts/validator.jsp"/>"></script>
All would be fine even if I didn't have a personForm definition in my
validation.xml file. With the latest build, however, it seems I must have at
least one rule in validation.xml for this to work. If I don't, I get the
following error message:
javax.servlet.jsp.JspException: No form found under name personForm, locale en_US
I prefer the *old* way because then I can generate a standard JSP form (using
XDoclet) with validation stuff already included. This bug prevents me from
doing that. If the user doesn't define any validation rules - they get an error.
A more appropriate thing to do might be to put a message in the comments of the
JavaScript that says:
// no rules defined for personForm
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org