I should also pointed out that I have implemented a DateTimeConverter, which looks like this:
public class DateTimeConverter extends AbstractConverter { /** * The singleton instance for a DateTime converter */ public static final IConverter INSTANCE = new DateTimeConverter(); private static final DateTimeFormatter DEFAULT_FORMATTER = DateTimeFormat .forPattern("dd/MM/yyyy HH:mm"); /** * [EMAIL PROTECTED] */ @Override protected Class getTargetType() { return DateTime.class; } /** * [EMAIL PROTECTED] */ public Object convertToObject(String dateString, Locale locale) { DateTime date = null; date = getDateTimeFormatter(locale).parseDateTime(dateString); return date; } /** * [EMAIL PROTECTED] */ @Override public String convertToString(Object obj, Locale locale) { DateTime date = (DateTime) obj; return getDateTimeFormatter(locale).print(date); } /** * Get the formatter for the current locale. * * @param locale * the current locale * @return the date formatter for the current locale. */ public DateTimeFormatter getDateTimeFormatter(Locale locale) { DateTimeFormatter formatter = null; if (locale == null) { formatter = DEFAULT_FORMATTER; } else { formatter = DEFAULT_FORMATTER.withLocale(locale); } return formatter; } } Doychi wrote: > > No but it does have: > public void setStarts(final DateTime starts) > > Which is what I thought would be needed as the object I'm trying to save > is a DateTime object. > > > Johan Compagner wrote: >> >> does your session object has a setStarts(Date) ?? >> > > -- View this message in context: http://www.nabble.com/Converters-tf3568876.html#a9988157 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user