there is a good example about use DateTextfield in :
http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage

however, I want to add the time field as well, so I found DateTimeField
which is working, however i don't know how to change the format of the date
it displayed,  in DateTextfield I believe I can do that with using its
constructor: new DateTextField("dateTextField", new
PropertyModel(this,"date"), new StyleDateConverter("S-", true)), but
DateTimeField only has a constructor: new
DateTimeField("dateTimeFromTextField", new PropertyModel(this, "date")) so I
don't know how to change its format, also I want to prevent user to type in
invalid date in the text field as well, becuase if user type some letters in
the textfield next to the date picker then the date picker won't start
properly as well.

I might asking dump question becuase I am too new to wicket (I use asp.net
before).


Many thanks!

-- 
View this message in context: 
http://www.nabble.com/how-to-change-format-in-DateTimeField--tf4646276.html#a13272285
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to