Ok, I am uisng GWTP, it got Client, Server & Shared package.

I have a Util class in client.

my.client.Util.java{
  public static String method1();
  //more methods here
}

In server i have

my.server.GetDataActionHandler{
    ///Should I do like this
    String s=my.client.Util.method1();
}

Is it safe to do that or I should put Util into shared package, like this

my.shared.Util.java{
  public static String method1();
  //more methods here
}

What is the different if we put a Util in shared package? is it safer or 
any other good reasons?

(
http://stackoverflow.com/questions/22839955/is-it-safe-for-a-class-in-server-package-to-access-a-method-in-client-package-in
)


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to