2 Replies Latest reply on Jun 7, 2008 2:40 PM by Francois Eric

    WebRemote and inheritance

    Francois Eric Novice

      Hello,


      I'm trying to access a method through the @WebRemote in an inherited class but am unable to.


      For example:


      public class Person {
          @WebRemote
          public String getName() {
              return "Frank";
          }
      }
      
      @Name("Employee")
      public class Employee extends Person {
          @WebRemote
          public String getNumber() {
              return "123";
          }
      }
      



      The getNumber method is visible but not the getName from the component in my javascript code:


      //Works
      Seam.Component.getInstance("Employee").getNumber(callback);
      
      //Does not work
      Seam.Component.getInstance("Employee").getName(callback);
      
      



      Is this a known bug?  Is there a workaround?


      Thank you,


      Francois