i have the same problem.... i beginned today with gwt i tried to use 2
project... and i don't find the documentation very clear about that
subject...
you can see a picture of the first project here:
http://imagebin.ca/img/A_UTHaF.png
the structure is very basic...
now in my second project
i would like to use my bean in my second project to display its
information
so i added the java class in the jar of the first project...
so where i need to put the gwt.xml file in the first project...
what's name i need to give it...
in my second project, in the gwt.xml file i willl add
<inherits name=.""/>
which name i will need to use?
any help would be very appreciate
> Hi os2be,
>
> Further to Izaac link, there a lot of posts that might help with this
> on the group. Search with, e.g. "inherit second module" for a
> reasonable selection. Also there is a good FAQ in the incubator that
> describes how GWT finds files, including secondary modules:
>
>
http://code.google.com/p/google-web-toolkit-incubator/wiki/PathsHandl...
>
> The Incubator download is also full of JAR's that do basically what
> you want to do so you may find it useful to poke around them to see
> how they use *gwt.xml files. Providing your domain classes (e.g. User)
> that you want to use client side are compatible with the GWT Emulation
> Library, you can definitely do what you want to do, but you have to
> set it up right for your ownprojectstructure and your dev
> environment, including making sure your classpath is correct.
>
> regards
> gregor
>
> On Apr 1, 10:07 am, os2be <
coll...@laboiteaprog.com> wrote:
>
> > in my jar X
>
> > in the package
>
> > org.server.domain, i have a class User.java
>
> > in this package i added: User.gwt.xml who contain this code
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <module>
> > <inherits name="com.google.gwt.user.User"/>
> > <source path="/user"/>
> > </module>
>
> > InprojectY
>
> > i added
>
> > <inherits name="org.server.domain.user"/>
>
> > gwt don't find user.gwt.xml from my classpath...
>
> > any idea?
>
> > On 1 avr, 10:04, os2be <
coll...@laboiteaprog.com> wrote:
>
> > > ok i include the firstprojectlike a jar in the second projet....
>
> > > myprojecty return a javabean (its class is inprojectX), when i
> > > build, they said my, it can't import it... so it don't find my
> > > javabean...
>
> > > On 31 mar, 17:23, "Isaac Truett" <
itru...@gmail.com> wrote:
>
> > > > As long as the class fromprojectX meets the criteria for GWT
> > > > > i have aprojectX (java application)
>
> > > > > with some javabean...
>
> > > > > i have aprojectY (webproject)
>
> > > > > can i return the javabean of theprojectX in a rpc call?
>
> > > > > thanks