0 Replies Latest reply on Aug 4, 2010 7:14 AM by Michel Reynard

    warning on xPath request in Flex4 when fine with Flex3

    Michel Reynard

      I'm upgrating from Flex 3 to Flex 4. Under Flex 3 I had no problem and no compilation error nor warning.

      On the following binding code:

      <mx:Binding source="this.model.appViewModel.appVO.translations.translation.(@language == this.model.appViewModel.appVO.currentLanguage).label.(@name == 'currentDate').@value" destination="this.inputDate.text"/>  

       

      I get the following warning (the code is working fine):

       

      Multiple markers at this line:

      -Data binding will not be able to detect assignments to "name".

      -Data binding will not be able to detect assignments to "language".

      -model

       

      If I remove the attributes filter in my biding I don't get any warning

      <mx:Binding  source="this.model.appViewModel.appVO.translations.translation.label.@value" destination="this.inputDate.text"/>  

       

      I get more than 200 warning because of this...

      Any idea?

       

      The translation is an xml data defined here

      [Bindable]
      public class AppVO
      {

              private var _translations     :XML              = <translations/>;

              ....

       

              public function get translations():XML {return this._translations;}
              public function set translations(value:XML):void {this._translations = value;}
      }