Re: Call external main program
hi daniela,
so, i guess you have a GWT-Web-App, and what you want to do, is to
integrate a
module (Java-Project) to this Web-App.
If this is the case, you have to do it like this:
- In your Java Project, create a .gwt.xml file, like you have one in
your GWT-App.
- Inherit this .gwt.xml file in your GWT-App in its .gwt.xml file. (So
you say the App where
the Code of your Module is. This is necessary, because the GWT Java
to JS Compiler needs it.)
- If you want to communication between your Module and your GWT-App,
just create a eventBus and
give it to your Module (via Constructor for example). You can create
and handle events, which
your Module can fire, and the GWT-App handles it.
I hope this is the problem you have, and that I can help you.
Greets
Alex
On 13 Feb., 20:10, daniela iervolino <daniela.ie...@gmail.com> wrote:
> Ok. I have a GWT web app and a Java project with a main() method and I
> don't know how to communicate with this java proj from my gwt
> application...
>
> On 13 Feb, 19:28, "Michael.Krog" <michael.k...@gmail.com> wrote:
>
> > Hi..
>
> > Do you want to start an external program on the client or on the
> > server?
>
> > -Michael
>
> > On 13 Feb., 11:02, daniela iervolino <daniela.ie...@gmail.com> wrote:
>
> > > Hi,
> > > I have a GWT web application that must call an external program. This
> > > program has a main() method like any other program. The problem is
> > > when I launch the GWT application, it says I have forgotten to inherit
> > > the required module..
> > > Can I call the external program without this error?
> > > Thankc
>
>
--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home