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
@WebRemote(exclude = {"[Foo].secret"})