This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes GWT and the fly likes Any way to tell GWT not to translate a method in a class ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Any way to tell GWT not to translate a method in a class ?" Watch "Any way to tell GWT not to translate a method in a class ?" New topic
Author

Any way to tell GWT not to translate a method in a class ?

Adi Vicks
Greenhorn

Joined: Feb 23, 2012
Posts: 9
My client is using a class which has member variables that I need , but also there are some other methods that I don't need to use. But GWT complains as those methods uses other dependency classes , and it asks me to provide source for those dependency classes as well.

So I am wondering if there is a way to tell GWT to translate a class but don't translate some of its methods. Something similar to @Transient in hibernate.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

I don't think thats possible.
Why not just move these methods to some other class, or provide the source code.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Any way to tell GWT not to translate a method in a class ?
 
Similar Threads
why and when to use polymorphism
Including multiple source in dependency modules.
External Java classes referenced from GWT app's server package
Took the beta
use third party jars in GWT App