Closed GoogleCodeExporter closed 9 years ago
Developers, this can be corrected by editing DatePicker.java (Lines 156 - 166)
setters for id and name. Just pass them through the
YUITools.sanitizeForJavascript
method as shown below:
@Override
@StrutsTagAttribute(description = "Used as HTML id attribute", required = true)
public void setId(String id) {
super.setId(YUITools.sanitizeForJavascript(id));
}
@Override
@StrutsTagAttribute(description = "Name of the field that will cotainf the date
value", required = true)
public void setName(String name) {
super.setName(YUITools.sanitizeForJavascript(name));
}
I have made the change and tested it in my local environment. The
sanitizeForJavascript method already replaces dots with underscores, so you
have what
you need.
Original comment by cody.bur...@gmail.com
on 30 Mar 2009 at 4:35
Resolved as "Fixed" (see revision 13 'Fix for Issue 5')
Original comment by cody.bur...@gmail.com
on 2 Apr 2009 at 9:57
Original issue reported on code.google.com by
mcal...@gmail.com
on 11 Feb 2008 at 5:17