1 Reply Latest reply on Jul 3, 2008 2:07 AM by shane.bryzak

    Seam Remoting: How to recursively exclude fields?

    rituraj_tiwari

      I have an class that references itself:


      public interface Foo
      {
          public List<Foo> getChildren();
          public void setChildren(List<Foo>);
      
          public Foo getParent();
          public void setParent(Foo parent);
      
          public String getSecret();
          public void setSecret(String sSecret);
      }
      



      I am returning an instance of the above from a web remote method:


      @WebRemote
      public Foo getRoot() { ... }
      



      What is the right exclude notation to prevent the secret field from being returned in the XML response? @WebRemote(exclude="secret") only does it for the immediate object, not others in the graph.


      Thanks.


      -Raj