On 24 mai, 01:58, fazie <d.rabi...@gmail.com> wrote:
> Hey,
> I'm new in GWT and I'm building my first app using spring+gwt.
> I get problem with source code from another package and used by client
> side of gwt app.
>
> I've got two packages:
> x.y.dao
> x.y.web.gwt.client
>
> configuration of gwt module tells gwt to look up source under client/
> directory:
>   <!-- Specify the paths for translatable code                    -->
>   <source path='client'/>
>
> Now, i want to use some class from x.y.dao in client class
> (x.y.web.gwt.client) and gwt complaint about lack of source code for
> class from dao.
>
> If I copy classes from x.y.dao under x.y.web.gwt.client, everything
> works fine ..., but I don't like have this classes under
> x.y.web.gwt.client, I want to have separate package x.y.dao.
>
> Is there solution for this problem?
> How to include classes from different package into client side gwt
> app ? (inherits doesn't works)

You'll have to use <inherits/>, but <inherits/> works on modules, not
packages, so you'll first have to make a gwt.xml module file into a
parent package of the one you want to use and adjust the <client
path="HERE" /> accordingly (you can also put it within your x.y.dao
and then use <client path='' /> to target the current package)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to