server code is not translated to javascript, and not sent to the
client.

you can reach your server side code through the RPC.

if you need code that works both on server and on the client, it must
be javascript-translatable, and defined in the 'source' dir, usually
under yourpackage.client.*;

if that makes it non-translatable, you can separate the non-
translatable code into subclasses that will live on the server, while
their superclasses will live on the client.

you can also use GWT.isClient() to determine the actual context and
only run meant to run in that context.

J.


On Jul 21, 1:44 pm, Bhayat <[email protected]> wrote:
> In my application i can reach server side code in Onload module that
> is in MyApplication class(this class implements EntryPoints) but i
> need to reach server side code not only in this class.For example on
> diffent class i create an button and also onclick event but i cant
> make this click listener work.
>
> How can i do this ? Do you have any suggetion ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to