Did you check DateTextField wicket-extensions?
On 8/14/06, kurt heston [EMAIL PROTECTED] wrote:
Johan,
Thanks for the help. Settled on this:
final DateConverter conv = new DateConverter();
final SimpleDateFormat sdf = new SimpleDateFormat(MM/yy);
Johan,
Thanks for the help. Settled on this:
final DateConverter conv = new DateConverter();
final SimpleDateFormat sdf = new SimpleDateFormat(MM/yy);
conv.setDateFormat(Locale.getDefault(), sdf);
TextField exp = new RequiredTextField(expiration) {
public
That way it is only used to format the string to the screen.The dateformatter is used to get the format out and _javascript_ dateformat is generated based on thatThat dateformatter should also be used by the textfield itself to handle the formatting both ways.
So override the getConverter() of the