Re: DateField and enabling some days

2009-07-09 Thread Fernando Wermus
Thanks On Thu, Jul 9, 2009 at 6:44 AM, John Krasnay wrote: > 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? > > >

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 wrote: > > > On Wed, Jul 08

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 dateField

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 wrote: > On Wed, Jul 08, 2009 at 01:16:19PM -0700, Fernando Wermus wrote: > > Date minDate = new DateTime().plusDays(1).toDate(); > > SimpleDateFormat format = new Simple

Re: DateField and enabling some days

2009-07-08 Thread John Krasnay
On Wed, Jul 08, 2009 at 01:16:19PM -0700, Fernando Wermus wrote: > Date minDate = new DateTime().plusDays(1).toDate(); > SimpleDateFormat format = new SimpleDateFormat("MM/dd/"); > widgetProperties.put("mindate", format.format(minDate)); FYI with Joda Time this can be r

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()