Re: [flexcoders] Binding on properties with Class type

2006-11-01 Thread Sergey Kovalyov



Changes are not detected. I will create example that shows it soon and post here.
On 10/31/06, Joan Lafferty [EMAIL PROTECTED] wrote:



Yes, in general, data binding is unable to detect changes to static properties regardless of type. 

Sergey, can you post an example of your code where you say "binding on properties with Class type does not work". Does the initial binding not work or are changes not detected?

Thanks,
Joan Lafferty
Flex SDK QA

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



RE: [flexcoders] Binding on properties with Class type

2006-10-31 Thread Mozilla By
It seems like binding doesn't work with STATIC variables of type Class.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Sergey Kovalyov
Sent: 31 ??? 2006 ?. 17:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding on properties with Class type

Hi All!

It seems that binding on properties with Class type does not work. Is
it correct?

Sergey.



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



[flexcoders] Binding on properties with Class type

2006-10-31 Thread Sergey Kovalyov
Hi All!

It seems that binding on properties with Class type does not work. Is
it correct?

Sergey.


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



[flexcoders] Binding to properties?

2005-07-30 Thread Stacy Young










Is it not possible to bind the enabled
attribute of a button to a property? As the property changes the state of the
button remains disabled i.e.



mx:Button id=saveButton
label=Create Section height=22 

enabled={ModelLocator.formSection.isValid}

 click=sectionViewHelper.submitForm()
/



FormSection reference:



import
org.nevis.cairngorm.vo.ValueObject;



class com.optimal.raven.vo.FormSection implements ValueObject

{

 public static var regClass = Object.registerClass( com.optimal.raven.application.resource.data.FormSection, com.optimal.raven.vo.FormSection
);

 

 public var code : String  = ;

 public var description : String  = ;

 public var languageDetails : Array  = new Array();

 public var active : Boolean  = true;



 public function FormSection()

 {

 }



//

 

 [ChangeEvent(change)]

 public function get isValid() :Boolean

 {

 if(description.length 
languageDetails.length)

 {

 for(var i:Number=0; i 
languageDetails.length; i++)

 {

 if(!languageDetails[i].isValid){

 trace(FormSection FALSE
DETAIL);


 return false;

 }

 }

 trace(FormSection TRUE);

 return true;

 } else {

 trace(FormSection FALSE);

 return false;

 }

 }



}



Cheers,

Stace









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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Binding to properties?

2005-07-30 Thread Matt Chotin










Whos dispatching the change
event? And does ModelLocator have formSection typed as a FormSection? Or is
it just a static variable of unknown type?











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young
Sent: Saturday, July 30, 2005 6:38
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding to
properties?





Is it not possible to bind the enabled
attribute of a button to a property? As the property changes the state of the
button remains disabled i.e.



mx:Button id=saveButton
label=Create Section height=22 

enabled={ModelLocator.formSection.isValid}


click=sectionViewHelper.submitForm() /



FormSection reference:



import
org.nevis.cairngorm.vo.ValueObject;



class com.optimal.raven.vo.FormSection implements ValueObject

{

 public static var regClass = Object.registerClass( com.optimal.raven.application.resource.data.FormSection, com.optimal.raven.vo.FormSection
);

 

 public var code : String
 = ;

 public var description : String
 = ;

 public var languageDetails : Array = new Array();

 public var active : Boolean
 = true;



 public function FormSection()

 {

 }



//

 

 [ChangeEvent(change)]

 public function get isValid() :Boolean

 {


if(description.length 
languageDetails.length)


{


for(var i:Number=0; i 
languageDetails.length; i++)


{


if(!languageDetails[i].isValid){


trace(FormSection
FALSE DETAIL);



return false;


}


}


trace(FormSection
TRUE);


return true;


} else {


trace(FormSection
FALSE);


return false;


}

 }



}



Cheers,

Stace









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








  
  
SPONSORED LINKS
  
  
  

Computer software testing
  
  
Macromedia flex
  
  
Development
  
  


Software developer
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Binding to properties?

2005-07-30 Thread Stacy Young










Ah, left that meta in there by accident,
was messing around. Its not being dispatched.

As for the ModelLocator, yes, formSection
is typed as a FormSection. IsValid property registers as false
when the view is initialized (as it should) yet when the property changes to true.
Da button, shes broke, wont enable. 



public static var selectedFormSection :FormSection =
new FormSection();











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
Sent: Saturday, July 30, 2005 9:49
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Binding
to properties?





Whos dispatching the
change event? And does ModelLocator have formSection typed
as a FormSection? Or is it just a static variable of unknown type?











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young
Sent: Saturday, July 30, 2005 6:38
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding to
properties?





Is it not possible to bind the enabled
attribute of a button to a property? As the property changes the state of the
button remains disabled i.e.



mx:Button id=saveButton
label=Create Section height=22 

enabled={ModelLocator.formSection.isValid}


click=sectionViewHelper.submitForm() /



FormSection reference:



import
org.nevis.cairngorm.vo.ValueObject;



class com.optimal.raven.vo.FormSection implements ValueObject

{

 public static var regClass = Object.registerClass( com.optimal.raven.application.resource.data.FormSection, com.optimal.raven.vo.FormSection
);

 

 public var code : String
 = ;

 public var description : String
 = ;

 public var languageDetails : Array = new Array();

 public var active : Boolean
 = true;



 public function FormSection()

 {

 }



//

 

 [ChangeEvent(change)]

 public function get isValid() :Boolean

 {


if(description.length 
languageDetails.length)


{


for(var i:Number=0; i 
languageDetails.length; i++)


{


if(!languageDetails[i].isValid){


trace(FormSection
FALSE DETAIL);



return false;


}


}


trace(FormSection
TRUE);


return true;


} else {


trace(FormSection
FALSE);


return false;


}

 }



}



Cheers,

Stace










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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Binding to properties?

2005-07-30 Thread Matt Chotin










Dude, you need a ChangeEvent for a getter unless
youre sure it will be right the first time J











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Stacy Young
Sent: Saturday, July 30, 2005 6:58
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Binding
to properties?





Ah, left that meta in there by accident,
was messing around. Its not being dispatched.

As for the ModelLocator, yes, formSection
is typed as a FormSection. IsValid property registers as false when
the view is initialized (as it should) yet when the property changes to
true. Da button, shes broke, wont enable. 



public static var selectedFormSection :FormSection =
new FormSection();











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Matt Chotin
Sent: Saturday, July 30, 2005 9:49
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Binding
to properties?





Whos dispatching the
change event? And does ModelLocator have formSection typed
as a FormSection? Or is it just a static variable of unknown type?











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stacy Young
Sent: Saturday, July 30, 2005 6:38
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding to
properties?





Is it not possible to bind the enabled
attribute of a button to a property? As the property changes the state of the
button remains disabled i.e.



mx:Button id=saveButton
label=Create Section height=22 

enabled={ModelLocator.formSection.isValid}


click=sectionViewHelper.submitForm() /



FormSection reference:



import
org.nevis.cairngorm.vo.ValueObject;



class com.optimal.raven.vo.FormSection implements ValueObject

{

 public static var regClass = Object.registerClass( com.optimal.raven.application.resource.data.FormSection, com.optimal.raven.vo.FormSection
);

 

 public var code : String
 = ;

 public var description : String
 = ;

 public var languageDetails : Array = new Array();

 public var active : Boolean
 = true;



 public function FormSection()

 {

 }



//

 

 [ChangeEvent(change)]

 public function get isValid() :Boolean

 {


if(description.length 
languageDetails.length)


{


for(var i:Number=0; i 
languageDetails.length; i++)


{


if(!languageDetails[i].isValid){


trace(FormSection
FALSE DETAIL);



return false;


}


}


trace(FormSection
TRUE);


return true;


} else {


trace(FormSection
FALSE);


return false;


}

 }



}



Cheers,

Stace











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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.