Hi everybody,
I know this is probably a very stupid question but please bear with
me.
I'm trying to use the same class on server and client (so I don't have
to duplicate code): is it at all possible? Apparently it is, but for
the life of me I can't figure out how to do it, I did the following,
?xml version=1.0 encoding=UTF-8 standalone=no?
module
inherits name='com.google.gwt.user.User'/
inherits name=com.gwtext.GwtExt/
entry-point class='my.server.Myclass'/
/module
First, you don't have a source tag, so you're just getting a source
path of client by default. That would
Eros schrieb:
I know this is probably a very stupid question but please bear with
me.
I'm trying to use the same class on server and client (so I don't have
to duplicate code): is it at all possible?
It is possible, but these classes have to reside in the client-
package or in a package
Thank you both, I was finally able to do it (I had completely missed
the source tag since it wasn't in any of the sample xml files I used
so far).
And yes, using a separate package for data object is definitely a good
idea, I'll start refactoring right away.
Cheers,
Eros