It's not a secret anymore!*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "datetimepicker not working in firefox" Watch "datetimepicker not working in firefox" New topic
Author

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: datetimepicker not working in firefox
 
Similar Threads
struts2 datetimepicker issue
DatetimePicker problem in struts2
datetimepicker + Struts2 + Ajax
datetimepicker in struts2
Struts 2: datetimepicker tag