The field-metadata tag can produce Javascript with errors from the "mask"
property of @Validate
-----------------------------------------------------------------------------------------------
Key: STS-685
URL: http://www.stripesframework.org/jira/browse/STS-685
Project: Stripes
Issue Type: Bug
Components: Tag Library
Affects Versions: Release 1.5.1
Environment: Linux (probably doesn't matter)
Reporter: Mike McNally
Priority: Minor
If an @Validate tag contains a regex with an unescaped slash (which, if it
involves a slash at all - like for a URL - is likely, since to Java's regex
engine the slash isn't a problem), the field-metadata tag code dumps the
slashes straight out into a Javascript-syntax /regex/ value. Well the slashes
make the Javascript interpreter unhappy.
To work around the problem, the notation "\u002F" can be used instead of the
slash, and that seems to work on the server (i.e., at validation time) and it
doesn't make the browser unhappy.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development