0 Replies Latest reply on Feb 19, 2009 4:19 AM by kchamarthi

    Problem in passing values from AS to Java

    kchamarthi
      Hi,
      I am using Remote Object(Flex 3) for passing the data between java and flex. I am using the BlazeDS as the bridge. I have to pass an array collection containing value objects to the java method. I have created the value object in both the client side(AS) and server side (java) and registered my AS value object using
      [RemoteClass(alias="class name")]. Now the problem is the array collection is goinhg to the back end but when i try to get the values in the value objects using the corresponding getters, i am getting null values. Can some one suggest me the solution.
      Following is my AS value object
      package ascript
      {

      [RemoteClass(alias="com.category.dao.CatgVO")]
      public class CatgVO
      {
      private var catg_id:String;
      private var parent_catg_id:String;
      private var catg_name:String;
      private var catg_desc:String;
      private var created_by:String;
      private var created_date:String;
      private var catg_status:String;
      private var blooper:String;
      private var catg_modifieddate:String;
      private var catg_modifieduserid:String;

      /**
      * @return the catg_id
      */
      public function getCatg_id():String {
      return catg_id;
      }
      /**
      * @param catg_id the catg_id to set
      */
      public function setCatg_id(catg_id:String):void {
      this.catg_id = catg_id;
      }
      /**
      * @return the parent_catg_id
      */
      public function getParent_catg_id():String {
      return parent_catg_id;
      }
      /**
      * @param parent_catg_id the parent_catg_id to set
      */
      public function setParent_catg_id(parent_catg_id:String):void {
      this.parent_catg_id = parent_catg_id;
      }
      /**
      * @return the catg_name
      */
      public function getCatg_name():String {
      return catg_name;
      }
      /**
      * @param catg_name the catg_name to set
      */
      public function setCatg_name(catg_name:String):void {
      this.catg_name = catg_name;
      }
      /**
      * @return the catg_desc
      */
      public function getCatg_desc():String {
      return catg_desc;
      }
      /**
      * @param catg_desc the catg_desc to set
      */
      public function setCatg_desc(catg_desc:String):void {
      this.catg_desc = catg_desc;
      }
      /**
      * @return the created_by
      */
      public function getCreated_by():String {
      return created_by;
      }
      /**
      * @param created_by the created_by to set
      */
      public function setCreated_by(created_by:String):void {
      this.created_by = created_by;
      }
      /**
      * @return the created_date
      */
      public function getCreated_date():String {
      return created_date;
      }
      /**
      * @param created_date the created_date to set
      */
      public function setCreated_date(created_date:String):void {
      this.created_date = created_date;
      }
      /**
      * @return the catg_status
      */
      public function getCatg_status():String {
      return catg_status;
      }
      /**
      * @param catg_status the catg_status to set
      */
      public function setCatg_status(catg_status:String):void {
      this.catg_status = catg_status;
      }
      /**
      * @return the blooper
      */
      public function getBlooper():String {
      return blooper;
      }
      /**
      * @param blooper the blooper to set
      */
      public function setBlooper(blooper:String):void {
      this.blooper = blooper;
      }
      /**
      * @return the catg_modifieddate
      */
      public function getCatg_modifieddate():String {
      return catg_modifieddate;
      }
      /**
      * @param catg_modifieddate the catg_modifieddate to set
      */
      public function setCatg_modifieddate(catg_modifieddate:String):void {
      this.catg_modifieddate = catg_modifieddate;
      }
      /**
      * @return the catg_modifieduserid
      */
      public function getCatg_modifieduserid():String{
      return catg_modifieduserid;
      }
      /**
      * @param catg_modifieduserid the catg_modifieduserid to set
      */
      public function setCatg_modifieduserid(catg_modifieduserid:String):void {
      this.catg_modifieduserid = catg_modifieduserid;
      }

      }
      }
      Regards
      Kranthi