Figured this out for anybody who has the same problem in the future - if you
use a labelFunction, make damn sure you supply a custom parseFunction, or
set parseFunction to null!

A pretty ugly silent failure tho methinks.

-J

On Mon, Apr 14, 2008 at 2:33 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

> No, it's being set to null, and I can't see how. As in when I click on
> another field in the form, I'm getting a CalendarLayoutChangeEvent from the
> DateField, with newDate as null, and at that time
> innerDateField.selectedDate is null. Interestingly enough, it doesn't call
> the labelFunction either, so it looks like there's still a value there, but
> if you bring up the popup again, it's not selected.
>
> -J
>
>
> On Mon, Apr 14, 2008 at 2:21 PM, aceoohay <[EMAIL PROTECTED]> wrote:
>
> >   Are you sure it is being set to null? I have seen a problem where if
> > the dateField is editable, and the width of the box is a bit too
> > small, it will display the date, but when editing/exiting it causes
> > it to display an empty box.
> >
> > I found that expanding the width ever so slightly made the problem go
> > away.
> >
> > Paul
> >
> > --- In [email protected] <flexcoders%40yahoogroups.com>, "Josh
> > McDonald" <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I've been getting mystery nulls, and it seems that for some reason
> > when my
> > > embedded DateField component loses focus, its selectedDate is reset
> > to null.
> > > Anybody have *any* idea why? I've got breakpoints on "set
> > selectedDate"
> > > inside mx:DateField and it's not being called...
> > >
> > > Sometimes I feel like such an incompetent prick :)
> > >
> > > -J
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls, It tolls for
> > thee."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: [EMAIL PROTECTED]
> > >
> >
> >  
> >
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls, It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]




-- 
"Therefore, send not to know For whom the bell tolls, It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to