Problem with Spring Dojo DateTextBox in Google Chrome and Firefox
I am attempting to use the Spring Dojo DateTextBox in my Webapp. The code I have implemented works fine in Internet Explorer, but it does not work in Google Chrome or Firefox. In both Google Chrome and FireFox the calendar pops up and populates the DateTextBox with the date chosen correctly, but the value in the DateTextBox is never passed through the form to the Controller. I was wondering if anyone has ever come across a similar situation, or has any ideas. My JSP code is below. The name of the field in my form is "startDate".
Thanks!!!!
Code:
<form:input path="startDate"/>
<script type="text/javascript">
Spring.addDecoration(
new Spring.ElementDecoration({
elementId : "startDate",
widgetType : "dijit.form.DateTextBox",
widgetAttrs : {
datePattern : "MM/dd/yyyy",
style: "width: 140px",
promptMessage: "Please enter start date",
required : false } } ) );
</script>