I am using Struts2 with ModelDriven
for form submitting.
When I use datetimepicker
tag of Dojo and select date from that tag the form is submitted correctly with the form values populated in the ModelDriven
object.
But when datepicker
tag of jQuery is taken in the form and date is selected the object in ModelDriven
have null values.
If date is not selected and form is submitted then it work fine.
Is there any setting required that I missed to resolve the issue ?
I had included following jar for JQuery.
JQuery:
<sx:datepicker name="startDate" id="startDate" label="" cssStyle="width:275px; "
minDate="0" displayFormat="dd/mm/y" changeMonth="true" changeYear="true"
readonly="true" value="%{startDate}"/>