2 Replies Latest reply on Jul 21, 2010 9:37 PM by UbuntuPenguin

    Flex setters are not getting Fired!

    NiladriSadhukhan

      Hi,

      I am facing a strange problem. In Flex, I have a VO(value Object) where I used couple of setter functions against some properties of that VO.

      This has one corresponding bean in java as well

      e,g

      Flex VO

      public

       

       

      var _bal:Number;

      public

       

       

      var actAm:String;

      public

       

       

      function set bal(_bal:Number):void{

       

      this.actAm = _bal.toFixed(2) + "";

       

      this._bal = _bal;

      }

      JAVA Bean

      public double

       

      bal;

       

      public

       

      String actAm;

       

      //getters & setters

       

      Now this code was working fine till I was using java 1.4 and WAS 6. I am using BlazeDS for Flex-Java Communication. But now the java code has migrated to 1.5 and WAS 6.1 and I find that the actAm is becoming null at times. For 1st time loading of the screen the values are being

      pupulated but after saving the data without doing any data alteration, the value of actAm is becoming null.

      For the time being I fixed the same by setting the above code in Java setters. But is there any thing else like version mismatch or some coding flaw?

      Please revert if any one have any knoledge of the same.

       

      I was using :

      Flex sdk            : 3

      Flex Framework : Cairngorm

      BlazeDs

      Java Framework : Spring 1.2.6

      Java                  : 1.4

      WAS                 :  6.0

       

      I now am using :

      Flex sdk            : 3

      Flex Framework : Cairngorm

      BlazeDs

      Java Framework : Spring 1.2.6

      Java                 : 1.5

      WAS                 :  6.1