Hello,
I have the following message when I try to launch my application with a DateItem :
Error :
[ERROR] Line 274: No source code is available for type java.util.GregorianCalendar; did you forget to inherit a required module?
Code :
DateItem dateNaissanceItem = new DateItem();
dateNaissanceItem.setName("dateNaissance");
//Personnalisation du widget de Date
GregorianCalendar calendar = new GregorianCalendar();
Date dtNow = calendar.getTime();
calendar.add (Calendar.YEAR, -150);
Date dtStart = calendar.getTime();
calendar.add(Calendar.YEAR, -20);
Date dtDefault = calendar.getTime();
dateNaissanceItem.setStartDate(dtStart);
dateNaissanceItem.setEndDate(dtNow);
dateNaissanceItem.setDefaultValue(dtDefault);
That is strange, the GregorianCalendar is into java.util and I didn’t have problem with java.util.list
Thank you by advance.
[EDIT] Solved. There are classes which can’t be used beause they are not part of the GWT JRE emulation.