I'm studying about GWT and Polymer by JsInterop, it looks cool so I start with some base example. I generate a brand new gwt project using the webAppCreator command and not much more that copy down this Vaadin example. After a successful compile I run gwt:run and an alert prompt on browser, here it is:
What's wrong? I'm using GWT 2.8, Polymer 1.0, Vaadin polymer libs 1.2.3.0 and Java 1.8.
Well, I manage this one by myself. I got this github project if anyone want to take a look at GWT 2.8 and Polymer 1.0 setup.
Related
I have an old project developed using GWT 1.5.3, which I run using "com.google.gwt.dev.GWTCompiler" or by selecting the module.gwt.xml and say "Run as Hosted Mode".
Now I have a requirement to create a new module under the same project using GWT 2.6.1, to run this I need to use "com.google.gwt.dev.Compiler". I created a separate module and it works fine when it is ran alone.
Now I have to locally run the GWT 1.5 app from which I need to invoke the GWT 2.6 module.
Please suggest me how do I achieve this?
Note : Both of these 2 modules have separate module.gwt.xml and .html files
I am not sure, but the only way I see would be a second hostpage. Then you could create a link (anchor) from the old application to the new one.
But, I think the better solution would be to upgrade the old project to GWT (2.7 is the current version)
Hi i am trying to find out how to initialize a spring mvc application on netebans.
When you create a new gradle project on netbeans is a java project, but how can i configure it to make it a spring mvc project.
Is there any tutorial out there?
Thanks!
You are pretty much on your own. You will need to configure Gradle to build your application. I assume it means using 'war' plugin and adding various Spring MVC dependencies. NetBeans with https://github.com/kelemen/netbeans-gradle-project plugin will then be able to understand Java related part.
There is a work in progress to add support for web application development to this plugin but nothing publicly available as far as I know.
I'm new to a number of technologies which I need to use together in a project. I have installed a Jetty plugin for eclipse and also got maven3 working with it.
I want to start a new web-app project from scratch which will use JSP, but I want it to follow the conventions for Maven projects.
I already know JSP so learning that isn't the challenge here, just getting the project set up.
Any help would be appreciated.
You can follow the tutorial here
http://wiki.eclipse.org/Jetty/Tutorial/Jetty_and_Maven_HelloWorld
The only difference in terms of what you want really is that instead of index.html in that example, you would use .jsp and the tags there you wish to use respectively.
The usage of maven, servlets and jetty would still be pretty much identical.
I have a GWT application that I need to deploy from a WAR file. I've got it kinda working using export to WAR option in Eclipse but after I deploy all of images in the application just show as missing image icon, and besides when we have multiple developers it is not nice to build from IDE this way.
I am looking for if there is a best way to script the build process that people have found (hopefully with an example) such as an Ant xml or any other GWT specific tools?
This tutorial provides step by step instructions for writing an ant script to build the war file including GWT specific compile steps and where/how to package static resources such as images.
http://www.rubiconred.com/blog/build-package-a-gwt-app-to-war-using-ant/
You could look into the GWT maven plugin.
If you're new to GWT or Maven, you might want to first read the GWT documentation and get more familiar with Maven by reading at least its getting started guide or by reading the online reference book.
I am new to GWT. I have developed a GWT application in version-1.6.4 and it is working fine. Now I want to integrate with that project in existing Java EE application. I don't know how to go ahead.
Where to copy the GWT source code in this existing Java EE application? I am also using RPC in GWT.
Can anyone provide help on this?
GWT is just a set of javascript and HTML files, so the most basic form of integration is just to put them in a folder in the same place your as your web pages go.
One step up from there would be to integrate the gwt Compiler in with your build process. If you use Netbeans there is a good plugin called GWT4NB that will handle all of this process for you, so that when you build the WAR of your project it will build the GWT portions of it as well. There would probably be something similar for Eclipse. You could also do all this by hand using maven or ant.
You would tell the compiler where you want it to put the generated files, which again, would be in the same location you put your web pages for your WAR project. The RPC side of it will still work just fine no matter where you put the files.