it is a strange problem. it works fine in hosted mode. However, I get
illegalArgumentException when I run it in web mode. we have a utility
"CalendarUtil" that has date related methods. When a date with just
the year, month and day is passed to Calendar. I get
java.lang.IllegalArgumentException. Please look at the code below:

Calendar calendar = Calendar.getInstance();
 calendar.setTime(earlierDate);
 earlierDate = calendar.getTime();

The web mode throws java.lang.IllegalArgumentException in the
calendar.getTime(). it is important to mention that when a date
created by new Date() which by default has all of the date stuff such
as (hour, minute....etc) is passed, it works fine.
Someone might argue that Calendar is not supported by GWT. To compile
the GWT code successfully, include the source code for Calendar and
point to the package in your product.gwt.xml. I have inherited this
project from another developer and it works fine in GWT 1.4. This
problem occur after upgrading to GWT 1.5.3.
I really need some suggestion. I highly appreciate you prompt
responses.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to