on 11/27/2000 12:22 PM, "Nissim Karpenstein" <[EMAIL PROTECTED]> wrote:
> AFAIK the DateSelector defaults to containing the current date when you
> create it without a date. I want to leave a null choice, in the
> dateselector. This would cause an extra option with empty string text to be
> added at the beginning of each <select> element, and if the blank option is
> selected for each element (date, month and year) then the date will be null.
>
> Does anyone else think this would be a useful feature?
Yes!
> If so, should it be an extra boolean parameter in the DateSelector
> constructor, or a setNullable method, or both?
both is fine.
> If some of the fields are left blank, but others are filled in, the
> ParameterParser.getDate can either throw an exception, or use the Calendar
> default: Year = 1970, Month=January, Date = 1...which one of these is
> better?
throw an exception.
> It looks like this would require changes to the DateSelector class and the
> ParameterParser class, is there anything I'm missing?
not that i know of.
-jon
--
twice of not very much is still a lot more than not very much
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]