• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

datetimepicker not working in firefox

 
usha kotha
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i pick date from datetimepicker in IE, it gets displayed in database.......but when i pick it in firefox, it displays null.
i am using struts2 dojo plugin for datetimepicker.
i don't want to use jquery plugin..........please help to solve the issue with struts2 dojo plugin

this is the date tag in my jsp

<sx:datetimepicker name="dateValue" formatLength="medium" label="Date" displayFormat="MM/dd/yyyy" value="%{dateValue}" required="true" type="date" cssStyle="border:1px solid #000;" />
 
Marc Rooding
Greenhorn
Posts: 6
Android Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say that you supplied a little too less information for us to give a definitive answer.

You state that in IE the chosen value does get stored in the database after submitting the form right? Then the first question I would ask is: have you checked wether the value gets submitted when using Firefox (use Firebug to check the POST body). If your chosen time is included in the body you know that the form itself functions correctly and that something is probably going wrong while processing the form data. If the value doesn't get submitted you know that it is the datetimepicker which is not working correctly under Firefox. I don't have any major experience with Dojo but your best bet would be to start debugging the datetimepicker. It probably has some hidden field which it uses to store the chosen date in the form itself. If that value does not get set in Firefox for some reason it would explain why your chosen date doesn't get stored.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic