RE: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Tianzhen Lin
If personalData is a class itself, its class definition should also declare
[Bindable], or emptstatus should be [Bindable] at least.  Bindable is not
recursive, and does not propagate. 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: Friday, December 28, 2007 11:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] data binding question for Cairngorm?

 

Hi 

I have the carirngorm code here


import ca.sb.CESF.ESF.vo.PersonVO;

[Bindable]
public var modelLocator:CESFESFModel = 
CESFESFModel.getInstance(); 


mx:TextInput id=eligible_total x=723.5 y=1294 width=82 
text={getEligible
(modelLocator.personData.emptstatus,new_total.text)}/

* personData is a instance of PersonVO and it is defined in 
CESFESFModel.

I get a warning error for modelLocator.personData.emptstatus.

The error message is :

Data binding will not be able to detect assignments to emptstatus. 

I already use the [Bindable] for modelLocator but why I can not 
bind modelLocator.personData.emptstatus

Thanks

Mark

 



Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Mark Shen
but I already have the following code in ModelLocator

[Bindable]
 public class CESFESFModel implements IModelLocator {
  
  // Single Instance of Our ModelLocator
  private static var instance:CESFESFModel;

 public var personData:PersonVO;

}

Thanks

Mark


- Original Message 
From: Tianzhen Lin [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 12:22:51 PM
Subject: RE: [flexcoders] data binding question for Cairngorm?

If personalData is a class itself, its class definition should also declare 
[Bindable], or emptstatus should be [Bindable] at least.  Bindable is not 
recursive, and does not propagate. 
 
From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of markflex2007
Sent: Friday, December 28, 2007 11:59 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] data binding question for Cairngorm?
 
Hi 

I have the carirngorm code here


import ca.sb.CESF.ESF. vo.PersonVO;

[Bindable]
public var modelLocator: CESFESFModel = 
CESFESFModel. getInstance( ); 


mx:TextInput id=eligible_total x=723.5 y=1294 width=82 
text={getEligible
(modelLocator. personData. emptstatus, new_total. text)}/

* personData is a instance of PersonVO and it is defined in 
CESFESFModel.

I get a warning error for modelLocator. personData. emptstatus.

The error message is :

Data binding will not be able to detect assignments to emptstatus. 

I already use the [Bindable] for modelLocator but why I can not 
bind modelLocator. personData. emptstatus

Thanks

Mark



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Muzak
PersonVO itself must be Bindable.


- Original Message - 
From: Mark Shen [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 6:45 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?


 but I already have the following code in ModelLocator
 
 [Bindable]
 public class CESFESFModel implements IModelLocator {
  
  // Single Instance of Our ModelLocator
  private static var instance:CESFESFModel;

 public var personData:PersonVO;
 
 }
 
 Thanks
 
 Mark



--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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/
 


Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Mark Shen
yes.

I have the code 


 [Bindable]
 public class PersonVO implements IValueObject
 {
  public var firstname:String;
...
}

But I still have the error.

Mark

- Original Message 
From: Muzak [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 1:19:00 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?

PersonVO itself must be Bindable.


- Original Message - 
From: Mark Shen [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 6:45 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?


 but I already have the following code in ModelLocator
 
 [Bindable]
 public class CESFESFModel implements IModelLocator {
  
  // Single Instance of Our ModelLocator
  private static var instance:CESFESFModel;

public var personData:PersonVO;
 
 }
 
 Thanks
 
 Mark



--
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




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


RE: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Tianzhen Lin
I don't think you get an error, but warning instead.  If you see no other
error, try and run the app and see if the binding is working as expected.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Shen
Sent: Friday, December 28, 2007 2:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] data binding question for Cairngorm?

 

yes.

 

I have the code 

 


 [Bindable]
 public class PersonVO implements IValueObject
 {
  public var firstname:String;

..

}

But I still have the error.

 

Mark

- Original Message 
From: Muzak [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 1:19:00 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?

PersonVO itself must be Bindable.


- Original Message - 
From: Mark Shen [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 6:45 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?


 but I already have the following code in ModelLocator
 
 [Bindable]
 public class CESFESFModel implements IModelLocator {
  
  // Single Instance of Our ModelLocator
  private static var instance:CESFESFModel;

public var personData:PersonVO;
 
 }
 
 Thanks
 
 Mark



--
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



 

 

  _  

Looking for last minute shopping deals? Find
http://us.rd.yahoo.com/evt=51734/*http:/tools.search.yahoo.com/newsearch/ca
tegory.php?category=shopping  them fast with Yahoo! Search.

 



Re: [flexcoders] data binding question for Cairngorm?

2007-12-28 Thread Muzak
If you still get a warning (not an error), try cleaning the project.
I've encountered *sticky* warnings in FB even after fixing the code in question.

- Original Message - 
From: Mark Shen [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, December 28, 2007 8:38 PM
Subject: Re: [flexcoders] data binding question for Cairngorm?


 yes.
 
 I have the code 
 
 
 [Bindable]
 public class PersonVO implements IValueObject
 {
  public var firstname:String;
 ...
 }
 
 But I still have the error.
 
 Mark
 



--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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/