I’m trying to add a date column to a cell table report using DateCell(format).
DateTimeFormat format = DateTimeFormat
.getFormat(PredefinedFormat.DATE_MEDIUM);
DateCell classDateCell = new DateCell(format);
I’m getting the error message: “The constructor DateCell(DateTimeFormat) is undefined”, but the javadoc, http://google-web-toolkit.googlecode.com/svn/javadoc/latest/index.html?overview-summary.html, says that’s a valid constructor.
What’s the problem here?
Are you by any chance using the com.google.gwt.i18n.shared.DateTimeFormat, the superclass of com.google.gwt.i18n.client.DateTimeFormat? The latter is the one the constructor you’re interested in is looking for.