PDA

View Full Version : Ext GWT newbie questions



DavidHoffer
2 Aug 2009, 5:39 PM
I am evaluating ext-gwt for a new project and considering purchasing a commercial license.

My first impressions of this library is that the showcase examples don't snow enough code to get a newbie started. For instance.

In the menu examples it shows how to create a menu but it doesn't do anything. There is no example with a simple listener to do something when selected. So how is this done? The constructor doesn't take any callback, there is no selection listener, etc. So how is a newbie supposed to know what to do?

Also the examples are not self-contained, I can't just copy the code for the menu and attach it to the root panel of my app, etc. Rather the example extends LayoutContainer and overrides onRender(Element parent, int index) with no explanation of what any of this is.

So how does a new user of ext-gwt fill in this missing information to trial this? Is there a more complete example?

-Dave

sven
3 Aug 2009, 12:47 AM
In the menu examples it shows how to create a menu but it doesn't do anything. There is no example with a simple listener to do something when selected. So how is this done? The constructor doesn't take any callback, there is no selection listener, etc. So how is a newbie supposed to know what to do?

The actual items take a SelectionListener. Menu is only container that holds everything together. Take a look at this example: http://www.extjs.com/examples/explorer.html#contextmenutree

DavidHoffer
8 Aug 2009, 3:26 PM
That's great for a menu/menu item, it makes perfect sense. So why didn't they do the same for MenuBar/MenuBarItem? Why make one work well and the other well...??? how? In my case I don't have a menu tree I have a menu bar.

-Dave

deanna
8 Aug 2009, 4:25 PM
I'm just learning also, but I know extjs. I had to start by learning GWT - which you probably already know. I found this http://extjs.com/helpcenter/index.jsp to show the concepts I needed to get started. Knowing extjs helps some but things are different because it isn't just a port of extjs to GWT environment, it is a native GWT implementation, inspired by extjs. :)

DavidHoffer
8 Aug 2009, 4:51 PM
Yeah, that's more like it...thanks much. I wonder why they don't put this front and center to help make GXT more approachable. I'm not too interested in the SVN/Eclipse sections as I use IntelliJ but starting with the Reference|Component section it seems helpful.

Now if I can just find a sample app showing how to create a basic GXT application I will be able to get rolling...

Just curious, why are you using GXT and not plain GWT? What's the main compelling story for GXT?

-Dave

deanna
8 Aug 2009, 4:54 PM
Just curious, why are you using GXT and not plain GWT? What's the main compelling story for GXT?

-Dave

GXT has a better component architecture. If you look at it as a framework, then GWT would be the underlining API of the framework and GXT what you build apps with.

Arno.Nyhm
10 Aug 2009, 5:13 AM
i think this important link is also missing in the product overview page:

http://extjs.com/learn/Learn_About_the_Ext_GWT_Library

if you dont know this link you can never find it :-(

( see also my suggestion here: http://www.extjs.com/forum/showthread.php?t=76122 )

DavidHoffer
10 Aug 2009, 5:29 PM
Nice 'sic' now that I have time to look at this again http://extjs.com/helpcenter/index.jsp (http://extjs.com/forum/../helpcenter/index.jsp) is down. :( Ext-JS is making it really difficult to use/learn their product.:(

deanna
10 Aug 2009, 7:26 PM
I know you don't use eclipse, but there is a help system that installs in eclipse for gxt. You might install eclipse just for that, plus the new addon from google to create a gwt project really makes getting a project started easy, all you have to do is push a button, give it a name, then add the gxt library to it and you have a working starter project. Most of the eclipse stuff in the help file does not use the new google addon. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/aa74940787785f51#