GWT.isClient(). http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/client/GWT.html
-Ben On Jan 5, 9:02 am, nacho <[email protected]> wrote: > I have a similar issue with translations in shared code. > > Is there any way to know if the code is running on server side or > running in client side? > > For example: > > if (isRunningOnClient) { > Window.alert(myConstants.hello());} else if (isRunningOnServer) { > > System.out.println(myResources.getString("hello")); > > } > > On 5 ene, 02:45, lalit <[email protected]> wrote: > > > Hi, > > > How can we do logging in the shared code? Some logging need to happen > > on server side and some logging will be happening on client side and > > there might be a possibility of same log active in both client and > > server side. > > > thanks in advance, -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
