RE: Correct Procedure for Creating GWT Web Apps

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

RE: Correct Procedure for Creating GWT Web Apps

Postby jcmorris-mts » Thu Oct 01, 2009 2:44 am

Hi Eric,

I want to make sure that I understand the instructions at http://download.instantiations.com/D2WBDoc/continuous/latest/docs/html/features/gwt/web_project_creation.html correctly.

Though the current online docs say, "Note that GWT projects and Web projects are distinct entities and should not be mixed. A Web project can reference GWT modules via its Web Project properties. A Web project should not contain any GWT elements directly.", it's not clear (at least it wasn't to me at first) what the correct procedure should be to set up a GWT Web Project.

From what I gather then, in order to build and deploy a GWT application that has all the provisioning normally associated with a J2EE web app, one needs to actually create two separate projects.

1. Create a normal GWT project using Designer's GWT Project Wizard. From File... chose New Project > Other... then WindowBuilder > GWT Designer > Web > Web Project.
2. Create a Designer GWT Java Project. From File... chose New Project > Other... then WindowBuilder > GWT Designer > GWT Java Project.
3. Develop your GWT Project as per the tutorials and instructions found on this site and at the Google GWT site.
4. Add any additional servlets, JSPs, HTML pages, etc. that you want in your web app to the Web Project.
5. When comes time to deploy your web application, you simply make reference to the modules in your GWT Project that you want to include in your Web Project via Properties (Eclipse menu) > Web Project > GWT (tab).

Would you say that’s more or less accurate? If so, then perhaps it would be clearer to spell that out as a procedure.

BTW -- Thanks for such a sharp product! I'm thoroughly enjoying Designer, and I've been recommending it every time someone asks me about Java GUI tools.

Jason Morris
Morris Technical Solutions LLC
jcmorris-mts
 
Posts: 25
Joined: Wed Feb 06, 2008 12:16 pm

Re: RE: Correct Procedure for Creating GWT Web Apps

Postby Eric Clayberg » Sun Oct 04, 2009 4:04 pm

jcmorris-mts wrote:Would you say that’s more or less accurate?

Sure. Keep in mind that you can also create Web projects using Eclipse WTP.

Also, as of GWT 1.6/1.7, you can put web.xml, servlet, JSP and HTML files directly into the GWT project.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest