Tutorial: Enable GWT-EXT palette widgets in GWT Designer

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

Tutorial: Enable GWT-EXT palette widgets in GWT Designer

Postby unclerico » Sat Jan 31, 2009 1:39 pm

Here are instructions I wish I had been able to find this morning. Hope it helps:

Required downloads: GWT, GWT Designer, GWT-EXT (http://gwt-ext.com/download/) , and ext-js (http://yogurtearl.com/ext-2.0.2.zip).

I unpacked my folders in locations like this:

usr/local/GWT/
usr/local/GWTDesigner/
usr/local/gwtext2.0.5/
usr/local/ext-2.0.2/


Assuming you don't already have an active project, create a GWT Designer project (With Hello World code) with module called something like “ModuleName”

There are three steps necessary to make the gwt-ext widgets show up in the “Design” menu of your GWTDesigner-based project:

1.Within the project, add a reference to the gwt-ext.jar file. Right-click “Referenced Libraries” within your new project, choose “configure build path” - “add an external jar”, browse to jar location (like usr/local/gwtext2.0.5/ and find the gwt-ext.jar and click ok.

2.Add the ext code as a reference. Within the project, /src/com.mycompany.project/public/
1.add a new folder called 'js.'
2.Open the folder and then choose Import – “file system.”
3.Browse to the location of the ext-2.02 files (like usr/local/ext-2.0.2) and select all.

3.Modify the ModuleName.gwt.xml file
located in /src/com.mycompany.project/public/ to ensure that the appropriate files are included.

<!-- Inherit the GWTExt Toolkit library configuration. -->
<inherits name="com.gwtext.GwtExt"/>
<stylesheet src="js/resources/css/ext-all.css" />
<script src="js/adapter/ext/ext-base.js" />
<script src="js/ext-all.js" />

Reload your ModuleName.java file and the gwt-ext module should appear under the list of palettes in the “Design” view of the page.

A functional example of a project with the everything set up is available from Instantiations at: download/file.php?id=38
unclerico
 
Posts: 12
Joined: Tue Dec 02, 2008 5:39 pm

Re: Tutorial: Enable GWT-EXT palette widgets in GWT Designer

Postby Eric Clayberg » Sat Jan 31, 2009 7:12 pm

unclerico wrote:Here are instructions I wish I had been able to find this morning.

Instructions for setting up GWT-Ext are available from the GWT-Ext web site.

Those are what we used to set up our sample 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

Re: Tutorial: Enable GWT-EXT palette widgets in GWT Designer

Postby Konstantin.Scheglov » Sun Feb 01, 2009 2:35 am

You will able to use soon just context menu action to configure your GWT module to use GWT-Ext.
Attachments
Screenshot - 01.02.2009 , 13_46_22.png
GWT-Ext configuring
Screenshot - 01.02.2009 , 13_46_22.png (84.92 KiB) Viewed 4342 times
Konstantin.Scheglov
Moderator
 
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Re: Tutorial: Enable GWT-EXT palette widgets in GWT Designer

Postby unclerico » Fri Feb 06, 2009 2:16 pm

Great - the menu-driven design looks good!
unclerico
 
Posts: 12
Joined: Tue Dec 02, 2008 5:39 pm

Re: Tutorial: Enable GWT-EXT palette widgets in GWT Designer

Postby vampie » Sat Feb 07, 2009 12:13 pm

is it available right now? ( gwt -ext configuration menu? ) or coming feature?
vampie
 
Posts: 89
Joined: Mon Nov 06, 2006 10:18 am

Re: Tutorial: Enable GWT-EXT palette widgets in GWT Designer

Postby Eric Clayberg » Sat Feb 07, 2009 1:15 pm

vampie wrote:is it available right now? ( gwt -ext configuration menu? ) or coming feature?

Coming soon along with support for GWT-Ext layouts, etc.

gwt-ext-layouts.png
gwt-ext-layouts.png (161.72 KiB) Viewed 4344 times
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

Re: Tutorial: Enable GWT-EXT palette widgets in GWT Designer

Postby vampie » Tue Feb 24, 2009 1:42 am

Any release date for gwt-ext layout supported designer?
any roadmap?

thx
vampie
 
Posts: 89
Joined: Mon Nov 06, 2006 10:18 am

Re: Tutorial: Enable GWT-EXT palette widgets in GWT Designer

Postby Eric Clayberg » Tue Feb 24, 2009 11:44 am

It will go into beta as soon as we are done with internal testing.
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

Think twice about GWT-EXT in your new project

Postby unclerico » Tue Mar 10, 2009 4:14 pm

Just an FYI for everyone. I was excited to use GWT-Ext widgets in Designer and glad to see Eric and the Instantiations guys cranking through them. GWT-Ext relies on an underlying library called Ext JS, which you know if you have tried to install them etc.

After some reading today, I learned that there was a falling out this fall after the Ext-JS guys switched their licensing to being commercial/LGPL to commercial/GPL. This basically means that if you don't buy their commercial license, you use Ext JS as GPL so there is a greater obligation to make your code available to the whole world under the GPL. Not an option for commercial developers.

This irritated the guy who wrote GWT-Ext and now he has moved on to a new project called SmartGWT which does NOT use Ext JS.

You can still use GWT-Ext using a legacy version of Ext-JS that is licensed under LGPL (I wrote this little how-to guide) but the underlying Ext-JS libraries will never be improved and the GWT-Ext team is now focused on a new project = little support.

It sort of screws everyone who is learning/has learned a lot about GWT-Ext. Brutality of open source-ism.
unclerico
 
Posts: 12
Joined: Tue Dec 02, 2008 5:39 pm

Re: Think twice about GWT-EXT in your new project

Postby Eric Clayberg » Tue Mar 10, 2009 5:06 pm

I am hoping we can get our first 7.0 beta out this week.
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 2 guests