Eelco Hillenius wrote: >> I should say this class seems too heavy for http session - it holds >> SimpleDateFormat instance which in turn holds DateFormatSymbols instance >> which in turn has several arrays inside. >> > > DateTextField? Not the one from wicket-datetime! That holds the > datePattern as a string, shouldn't hold references to much else. > Unless I overlooked something. Can you give details please? > 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; } }; } > >> BTW I've created class which >> can dump http session contents into a file in the form of object tree, >> in fact it's modified org.apache.wicket.util.io.SerializableChecker. >> > > That sounds cool. Can you please, please, please contribute that to > http://issues.apache.org/jira/browse/WICKET-643? :) > attached my class to the issue -- 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