Hi,

> That would imply a bug elsewhere DateField.

DateField consist of 3 functions addedToParent and a selectedDate 
setter/getter. How would you fix this bug?

>  The pattern all components
> should be using is to define an interface for a class of beads, maybe
> something like IDateFormatBead.

It does exactly this it uses IFormatBead. See the (unmodified) code in 
addedToParent in particular this line:
var klass:* = ValuesManager.valuesImpl.getValue(this,"iFormatBead");

> Then the code, usually in addedToParent()
> should use getBeadByType() to see if there is an IDateFormatBead and only
> if there isn't should it go see if there is a default in CSS.

So addedToParent should call getBeadByType rather than getValue? The method was 
original written by you I believe.

> I noticed that there was a commit that changed the default date format
> away from US format.

For dates like 04-12-2017 most of the world would read that as 4th of December 
not the 12th of April. See https://en.wikipedia.org/wiki/Date_format_by_country

> How did we manage the default format in regular Flex?

It was locale dependant (specified in the shared resources resource file), 
currently FlexJS doesn’t support resource files.

Thanks,
Justin

Reply via email to