Re: [Wicket-user] DatePicker with SimpleDateFormat

2006-08-14 Thread Ali Zaid
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);

Re: [Wicket-user] DatePicker with SimpleDateFormat

2006-08-13 Thread kurt heston
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

Re: [Wicket-user] DatePicker with SimpleDateFormat

2006-08-11 Thread Johan Compagner
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