Whether the client can make requests to the server (server to respond to the client) with data, the type of which is the class defined by us.

    1 answer 1

    Yes. for example

    import java.io.Serializable; public class UserData implements Serializable { private String id, login, descr, hash; public UserData() { id = login = descr = hash = ""; } public UserData(String i, String l, String d, String h) { id = i; login = l; descr = d; hash = h; } .... } 

    implements Serializable required, respectively, all elements of the class. serializable.

    One more thing. If you use a class from GWT (SmartGWT) in your class, for example ListGridRecord, which is not in the server-side jar, the compiler does not catch this, and an error (Exception) occurs during the execution of the servlet.

    Arrays of their classes (including ArrayList <t>) can also be exchanged.

    • Strange, if the source files of our classes are not put into one source package with MyServise.java, the application does not start and the form does not open GWT Designer? - Ildar