Try:
selectedClient = e.result as ClientVO;
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mvbaffa
Sent: Thursday, March 23, 2006 3:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding properties of Custom Component in Flex 2
Hi everybody,
I am migrating a Custom Component, from Flex 1.5 to Flex 2 Beta 2,
that has inside it two other components:
- ClienteList: A datagrid with a list of Clients
- ClientSummary: Panel that show the details of a Selected Client in
the DataGrid
The main component is like this
[Bindable]
public var selectedClient : ClientVO;
private function doSelectClient(event:Event) : void {
var e:ControllerEvent = ControllerEvent (event);
selectedClient = (ClientVO) e.result;
}
When the change event occurs in ClientList it fires an event,
clientSelected, that executes the function doSelectClient. This is
working because I can debug and see that doSelectClient is executing
when I select an item in the datagrid.
As you can see doSelectClient sets the property selectedClient that
is bounded to the property clientDetail of ClientSummary. At
ClientSummary this property is defined like this
[Bindable]
public var clienteDetail : ClienteVO;
and the PanelTitle is defined like this
The property clientDetail binds to the Title of ClientSummary with
the clientName. But nothing works. In Flex 1.5 this is working OK
but in Flex 2 it seems that a update in the property clientDetail
does not cause any changes in ClientSummary
I don't know what is happening, can anybody help me
--
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
--
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/