1 Reply Latest reply on Oct 2, 2006 4:44 PM by shane.bryzak

    Seam Remoting. How can I get list of Objects?

    serrgblues

      How can I see in the Reference (Chapter 7), I can get "result" by :

      function sayHello() {
      var name = prompt("What is your name?");
      Seam.Component.getInstance("helloAction").sayHello(name, sayHelloCallback);
      }
      function sayHelloCallback(result) {
      alert(result);
      }
      


      If "result" is a simple Java type or JavaBean annotated as "@Enity" - ok!
      But if "result" is a
      List<SomeObject>
      ("SomeObject" is not @Entity. It's a simple JavaBean(2 fields, setters and getters)), when I'll take "result" as Javascript Array filled VOID objects ... What can I do for avoid that?

      Thanx for attention ...