[Seaside] [ShoreComponents] date picker
squeak3 at continentalbrno.cz
Tue Jul 12 08:12:26 CEST 2005
> First of all, thanks to all for the great work of ShoreComponents.
> This has opened up a whole ne perspective of Seaside for me. On that
> note, I'd like to suggest something. It would be nice to have a way
> to specify the format of how the date is displayed in the text box.
> For example, in the demo, the default value of the date field is the
> string representation of 'today'. When you select a value from the
> date picker, the format is changed from something like '11 July 2005'
> to '7/11/2005'.
> Maybe something like being able to call #printFormat: from the Date
> class would be nice. So, your example could be:
> html datePickerOn: #date of: self printFormat: #(2 1 3 $/ 1 1)
> instead of:
> html datePickerOn: #date of: self.
> What do you think?
> - Daniel
OK, can you do it? This widget has moreover one problem - it's still simple
text input form field from the view of application so we have to work with
strings and convert it to dates. It has to be modified to work only with
instances of Date class.
More information about the Seaside