http://lmgtfy.com/?q=gwt+module+xml+source

http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.ModuleXml.html
http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.html

It's a subpackage of the package your module is located in (your
*.gwt.xml).

Andreas

On 7 Jul., 11:44, day_trader <[email protected]> wrote:
> Does not appear to be working even with the <source path=''/>,
> assuming I'm giving the correct path. Is the path of the form of a
> directory or package?
>
> On Jul 7, 9:51 am, andreas <[email protected]> wrote:
>
>
>
> > The inherits tag is for inheriting GWT modules not for inheriting Java
> > files or similar (afaik).
>
> > You add packages to the GWT translatable sources via source tag:
>
> > <source path='client'  />
>
> > This should be enough assuming your GWT module is in 'com.myApp'.
>
> > Andreas
>
> > On 7 Jul., 10:44, day_trader <[email protected]> wrote:
>
> > > It could possibly be because I am using Enunciate to develop my
> > > application with. Here is my complete error:
>
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Problem assembling the enunciate app.
>
> > > Embedded error: Class not found: TreeModel
>
> > > I've just tried putting TreeModel into my gwt.xml file : <inherits
> > > name='com.myApp.client.models.TreeModel'/> however this doesn't appear
> > > to work either. I have posted this to the Enunciate Mailing List as
> > > well, so hopefully one of those guys can enlighten me if it's a
> > > probably with Enunciate and not GWT/GXT.
>
> > > Malcolm
>
> > > On Jul 7, 9:28 am, andreas <[email protected]> wrote:
>
> > > > Sorry, it's war/WEB-INF/classes/.
>
> > > > On 7 Jul., 10:26, andreas <[email protected]> wrote:
>
> > > > > You do not have to move something out of 'client' packages to have it
> > > > > on your server. This is definitely wrong!
>
> > > > > You do have to move classes you want to have on the client or both
> > > > > client and server into the client packages (or declare those packages
> > > > > in your *.gwt.xml files).
>
> > > > > Since you want your class to be passed from the client to the server
> > > > > this class definitely needs to be in your 'client' package. I don't
> > > > > know why you get an error on compiling, maybe you can give more
> > > > > informations on this one. GWT compiles all Java files (also those in
> > > > > 'client') to .class files in your war/WEB-INF/src/ folder so all
> > > > > classes will be accessible on the server.
>
> > > > > Andreas
>
> > > > > On 7 Jul., 10:02, day_trader <[email protected]> wrote:
>
> > > > > > This is where I am rather confused. As when i move it to
> > > > > > a package which isn't named in the .gwt.xml file I receive
> > > > > > an error of "cannot be resolved to a type". Which is fair enough,
> > > > > > as I assumed everything in the .gwt.xml was putting the classes
> > > > > > in 'view' of everything in the application? Or perhaps I'm very
> > > > > > muddled up!
>
> > > > > > Sorry for the continued annoyance! I very much apologise.
>
> > > > > > Malcolm
>
> > > > > > On Jul 7, 5:11 am, Sunny <[email protected]> wrote:
>
> > > > > > > Hi day_trader
>
> > > > > > > As far as i can think is that you are trying to pass an object 
> > > > > > > with
> > > > > > > the data of the class..
>
> > > > > > > now to make your class go to the server side all you need to do 
> > > > > > > is to
> > > > > > > move it to a package that is in the package that is *not* 
> > > > > > > mentioned in
> > > > > > > your <your_gwt_xml>.gwt.xml file as the classes in these
> > > > > > > packages,which are mentioned in the gwt.xml file, get "ajaxified" 
> > > > > > > and
> > > > > > > sent on to the client.
>
> > > > > > > Hope this helps.
>
> > > > > > > Sunny.
>
> > > > > > > On Jul 6, 5:04 pm, day_trader <[email protected]> wrote:
>
> > > > > > > > Thanks for the replies thus far.
>
> > > > > > > > That all makes sense. I did have strong doubts about the 
> > > > > > > > likelihood of
> > > > > > > > what I wanted but as I am not an expert in the field I thought 
> > > > > > > > it was
> > > > > > > > better to make sure.
>
> > > > > > > > Actually, my problems would be solved quite quickly if I got 
> > > > > > > > around my
> > > > > > > > initial problem that led to this posting. Basically, there is a 
> > > > > > > > class
> > > > > > > > in my client side, under myApp.client.models.SomeModel that I 
> > > > > > > > need to
> > > > > > > > pass to the server. The problem is that the server cannot see 
> > > > > > > > this
> > > > > > > > class as I get an error when I try to compile it. My question 
> > > > > > > > is: How
> > > > > > > > do I check if the class is on my SERVER classpath?
>
> > > > > > > > Thanks :)

-- 
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