Re: DateField and enabling some days

2009-07-09 Thread John Krasnay
Sorry, I don't know much about Date[Time]Field. Just trying to save you a few LoC. jk On Wed, Jul 08, 2009 at 01:35:13PM -0700, Fernando Wermus wrote: thanks for the tip. Is there some way to solve what I commented? On Wed, Jul 8, 2009 at 1:25 PM, John Krasnay j...@krasnay.ca wrote: On

DateField and enabling some days

2009-07-08 Thread Fernando Wermus
Hi all, I've successfully pointed to DateTimeField which days I want the calendar to have enabled. @SuppressWarnings(unchecked) @Override protected void configure(Map widgetProperties) { super.configure(widgetProperties); Date minDate = new DateTime().plusDays(1).toDate();

Re: DateField and enabling some days

2009-07-08 Thread Fernando Wermus
thanks for the tip. Is there some way to solve what I commented? On Wed, Jul 8, 2009 at 1:25 PM, John Krasnay j...@krasnay.ca wrote: On Wed, Jul 08, 2009 at 01:16:19PM -0700, Fernando Wermus wrote: Date minDate = new DateTime().plusDays(1).toDate(); SimpleDateFormat format =

DateField and enabling some days

2009-07-08 Thread Fernando Wermus
I finally rewrite the DateField class, but I would like this were an improvement. /** * Construct. * * @param id * @param model */ public DateField(String id, IModel model) { super(id, model); setType(Date.class); PropertyModel