Thanks Suzy but my problem isn't with populating a combobox...my
combobox of users populates just fine, when I select a user from the
list and the user is fetched, the user object whose fields are bound to
various textinput fields in my form are not shown...it's only when I
'touch' the file and refresh my browser, is the user information shown
correctly in the textinput components of my form...I can't grasp why
this would be happening...

robert l. brueckmann
vice president
merlin securities
595 madison avenue
new york, ny 10022
p: 212.822.4821
f: 212.822.4820
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Suzy Lawson
Sent: Monday, April 24, 2006 7:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to
TextInput help please

Roger,
  I have faced the same problem. The reason is that when you deploy it
the server for the first time, nothing is compiled. So in your initial
request, your application returns the users before it has compiled and
created the component...so your call to set the combo box with user
silenty fails. When you hit refresh, since everything is already
compiled, it can set the combobox with the data in time.

Put your logic to fetch the XML user in the creationComplete method of
your mx:Combobox...or somewhere where you know it is created.

hope this helps. cheers.

--- In flexcoders@yahoogroups.com, "Robert Brueckmann"
<[EMAIL PROTECTED]> wrote:
>
> I tried searching the archives and couldn't find anything relevant to
> what we're doing here, so I'm hoping someone can explain something:
>

>

>
> 1.      User logs in
>
> 2.      XML is returned with all applications user has access to
>
> 3.      Tab Navigator component is generated on the fly with tabs
> labeled according to application names in XML returned from DB.
Actual
> MXML component each tab is linked to is not yet created upon creation
of
> the TabNavigator...ONLY when the user clicks on a tab, is the
> appropriate MXML component created.
>
> 4.      One of the tabs is a user admin form where an admin user can
> select any of the system users from a list and edit their information
>
> 5.      All fields in this form are bound to
> ModelLocator.selectedUser.someField
>
> 6.      Admin user selects user from list and in the result method of
my
> command class that retrieves the user, the code is simply
> ModelLocator.selectedUser = UserAdminVO(event.result);
>
> 7.      The VERY first time the application is deployed and the
> application server restarted, and the application compiles for the
first
> time, the TextInput components DO not get updated with the bound
> selectedUser's information.  My trace statements in the command class
> SHOW the selectedUser object getting set and the field values there,
but
> my TextInput components do not reflect this information.
>
> 8.      If I open up FlexBuilder and open my UserAdmin.mxml file,
simply
> hit the spacebar, and save it (the file is automatically uploaded to
my
> app server) and I hit the refresh button on my browser, go to the User
> Admin tab and select a user, magically, the user info is displayed as
it
> should.
>
> 9.      If I try to redploy the code and restart the app server again,
> I'm back to square one.
>

>

>
> What the HECK is going on here?  It's like a bug in the binding of a
VO
> to the TextInput components does not work upon initial compilation on
> dynamically created components...not until I TOUCH the component MXML
> file and refresh the browser, forcing the Flex compiler to recompile
the
> app, do the fields actually show the properly bound information.
>

>
> Any thoughts?
>

>
> robert l. brueckmann
>
> vice president
>
> merlin securities
>
> 595 madison avenue
>
> new york, ny 10022
>
> p: 212.822.4821
>
> f: 212.822.4820

> --------------------------------------------------------
>
> This message contains information from Merlin Securities, LLC, or
from one of its affiliates, that may be confidential and privileged.
If you are not an intended recipient, please refrain from any
disclosure, copying, distribution or use of this information and note
that such actions are prohibited. If you have received this
transmission in error, please notify the sender immediately by
telephone or by replying to this transmission.

> Merlin Securities, LLC is a registered broker-dealer. Services
offered through Merlin Securities, LLC are not insured by the FDIC or
any other Federal Government Agency, are not deposits of or guaranteed
by Merlin Securities, LLC and may lose value. Nothing in this
communication shall constitute a solicitation or recommendation to buy
or sell a particular security.
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links




--------------------------------------------------------

This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.

Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to