1 Reply Latest reply on Mar 31, 2007 5:17 PM by shane.bryzak

    Seam Remoting and own Map

    statelessbean

      Hi,
      If i got list of my own objects class and want to send it via ajax to client.
      How can I parametrize it in js?

      class Person {
      private int age;
      private String name;
      }


      in remote method i got List myOwnList = ....

      if i recive result on client side

      function setUp() {
       var idUnit = "id";
       Seam.Component.getInstance("rocketCenterAction").setUp(idUnit, setUpCallback);
      }
      
      function setUpCallback(result) {
       alert(result); <===HERE HOW TO USE MY LIST?
      }
      

      i got "object Object" and don't know how to parametrize back to list=array of objects.