Hi, I'd guess that your two approaches are either to change the model, where you'd need to have your "String getCurrentDateTime()" return the formatted string, or change the component by adding a DateToStringConverter, in the same sort of way as shown at the end of http://www.wicket-wiki.org.uk/wiki/index.php/Using_custom_converters
/Gwyn On 19/01/06, blackboy zabaha <[EMAIL PROTECTED]> wrote: > I have a model with a java.util.Date attribute that will show a current date > time as default value on form at first time, I'm using CompoundPropertyModel > bind this model with form , > and when render on html I want it show with format "dd/MM/yyyy HH:mm" > but now It alway show with format "dd/MM/yyyy" > > How can I format it? > > I try Custom Converter but I'm so confusing that in my case I'm going to > convert String to Date, or Date to String, or this is not matter of > converting type to type, and if so how can I format this output string? Do I > have to re-model Date type to String type? (I hope not to do so..) > > Many thanks in advance. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
