File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes datetimepicker not working in firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "datetimepicker not working in firefox" Watch "datetimepicker not working in firefox" New topic

datetimepicker not working in firefox

usha kotha
Ranch Hand

Joined: Apr 18, 2012
Posts: 33
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

Joined: Jun 15, 2010
Posts: 6

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.

SCJP 6, OCWCD 5, SpringSource Spring 3 Certified Professional (92%)
I agree. Here's the link:
subject: datetimepicker not working in firefox
It's not a secret anymore!