--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
public void yourMethod(...) {
if (!GWT.isClient()) {
everything in your method.
}
}
The complier should then ignore everything inside the conditional.
However, it seems a bit of a kludge to exclude the whole method. Another option is sub-classing and
have a server-side version which is a sub-class of your shared class - I've done that before and
IMHO its a bit more elegant.
HTH
Alan
--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
I've done that several times and it works just fine. It may even simplify your unit tests.
Alan
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.