Eelco Hillenius wrote: >> The one which was mentioned is >> org.apache.wicket.extensions.markup.html.form.DateTextField >> Here is some code from 1.3 beta 1: >> >> public DateTextField(String id, String datePattern) >> { >> super(id, Date.class); >> this.dateFormat = new SimpleDateFormat(datePattern); >> this.converter = new DateConverter() >> { >> private static final long serialVersionUID = 1L; >> >> /** >> * @see >> org.apache.wicket.util.convert.converters.DateConverter#getDateFormat(java.util.Locale) >> */ >> public DateFormat getDateFormat(Locale locale) >> { >> return dateFormat; >> } >> }; >> } >> >> > > Yeah, that's a bit expensive. I'm sure someone can optimize that if > there's a JIRA issue for it :) > http://issues.apache.org/jira/browse/WICKET-672 :-)
-- Andrew Klochkov ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user