RE: [flexcoders] ComboBox Problems

2008-07-07 Thread Alex Harui
How are you verifying that selectedIndex is correct?  I assume the
dropdowns still contain the correct arrays?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hardaur55
Sent: Monday, July 07, 2008 6:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox Problems

 

Hey all.

Having a silly problem with 3 comboboxes and can't seem to find
anything very helpful via google.

I'm creating a user registration wizard with multiple pages that
contains a custom component. The custom component is a date selection
component consisting of 3 combo boxes (month, day, year). They are
all populated with simple arrays as the dataProvider.

Every thing works perfectly except. . .If you select your date (DOB in
this case) and go back to a previous page in the wizard when you
return to the page with the DOB control, the comboboxes are showing
the prompt again. The selectedIndex/Item !IS! correct, it's just not
displaying the that correct value. They're not being reinstantiated,
etc.

I've tried firing off CHANGE and RENDER events on the comboboxes but
nothing (programatically) will force them to show the value they have
for selectedIndex that I've been able to find.

Anybody have any pointers on this one? Seems silly to me that the
default behavior wouldn't be to always show the current selectedIndex
*shrug*.

Thanks!

Gerald

 



RE: [flexcoders] ComboBox Problems

2008-07-07 Thread Tracy Spratt
Implement the wizard using a ViewStack.  The control states will not
change when you navigate around.

 

Or just set the comboBox selectedIndex on show or some other event.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hardaur55
Sent: Monday, July 07, 2008 9:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox Problems

 

Hey all.

Having a silly problem with 3 comboboxes and can't seem to find
anything very helpful via google.

I'm creating a user registration wizard with multiple pages that
contains a custom component. The custom component is a date selection
component consisting of 3 combo boxes (month, day, year). They are
all populated with simple arrays as the dataProvider.

Every thing works perfectly except. . .If you select your date (DOB in
this case) and go back to a previous page in the wizard when you
return to the page with the DOB control, the comboboxes are showing
the prompt again. The selectedIndex/Item !IS! correct, it's just not
displaying the that correct value. They're not being reinstantiated,
etc.

I've tried firing off CHANGE and RENDER events on the comboboxes but
nothing (programatically) will force them to show the value they have
for selectedIndex that I've been able to find.

Anybody have any pointers on this one? Seems silly to me that the
default behavior wouldn't be to always show the current selectedIndex
*shrug*.

Thanks!

Gerald