View Full Version : New user, Eclipse, GWT. How do I find these widgets in my Eclipse project?
Booth Martin
03-24-2008, 11:08 PM
New user, Eclipse, GWT. How do I find these widgets in my Eclipse project?
I also am using Instantiations Designer, which is very nice, but I sure would like to use the widgets shown here.
There must be a simple way to do this but so far all I have a is a long list of things that don't work.
Thank you.
dtondo
09-19-2009, 10:53 PM
There is no one who can write a decent and easy tutorial !!!. I tried to make a "hallo world" more than 5 times using differents tutorials and i can't make it run!!!
How can i bought a tool like this? I can't eather start a simple project!
With extjs i run a grid sample in seconds! That is a shame!
dpope22
09-21-2009, 11:10 AM
What sort of problems are you running into? What errors are you seeing?
dtondo
09-21-2009, 10:45 PM
What sort of problems are you running into? What errors are you seeing?
the problem is that i don't see anything... i use the cypal plugin for eclipse, to help build a start application, but i load all, got no errors, and in the mini google's browser i cant see nothing.
The alert function works ...
Is very strange, because i get a sample from ext page.
thanks
dpope22
09-22-2009, 11:36 AM
I'm assuming you are using GWT's hosted mode when you say the mini google browser. If so, there should be another window that pops up when you run your application titled 'Google Web Toolkit Development Shell'. Is there any output in this window?
dtondo
09-22-2009, 12:32 PM
I'm assuming you are using GWT's hosted mode when you say the mini google browser. If so, there should be another window that pops up when you run your application titled 'Google Web Toolkit Development Shell'. Is there any output in this window?
yes, but i see no more errors there :(
dpope22
09-22-2009, 12:35 PM
Can you post the code you are trying to run?
dtondo
09-22-2009, 09:50 PM
Can you post the code you are trying to run?
i have followed this tutorial:
http://www.extjs.com/helpcenter/topic/com.extjs.gxt.help/html/gettingstarted/gettingstarted.html
no success :-|
dtondo
09-22-2009, 10:12 PM
i have followed this tutorial:
http://www.extjs.com/helpcenter/topic/com.extjs.gxt.help/html/gettingstarted/gettingstarted.html
no success :-|
that tutorial, for sample...
http://gwt-ext.com/wiki/index.php?title=Using_Eclipse
i cant find the "GWT Home text field"
http://img85.imageshack.us/img85/7222/imagemq.png
i cant see a single tutorial working....
dpope22
09-23-2009, 11:43 AM
that tutorial, for sample...
http://gwt-ext.com/wiki/index.php?title=Using_Eclipse (http://gwt-ext.com/wiki/index.php?title=Using_Eclipse)
This sample refers to another RIA library, not GXT. They have similar names and it can be confusing at first, but I'm pretty sure that the two aren't compatible. You'll either have to use GXT (Ext-GWT) or GWT-EXT. The pure Java solution is GXT.
dtondo
09-23-2009, 12:26 PM
This sample refers to another RIA library, not GXT. They have similar names and it can be confusing at first, but I'm pretty sure that the two aren't compatible. You'll either have to use GXT (Ext-GWT) or GWT-EXT. The pure Java solution is GXT.
Interesting. Do you know a working tutorial for GXT?
dpope22
09-23-2009, 12:33 PM
Try to get up and running with just GWT first. Here's their getting started guide:
http://code.google.com/webtoolkit/gettingstarted.html
Once you get that working, you can add in GXT to the mix.
dtondo
09-24-2009, 10:20 PM
Try to get up and running with just GWT first. Here's their getting started guide:
http://code.google.com/webtoolkit/gettingstarted.html
Once you get that working, you can add in GXT to the mix.
ok i made the sample works...
now when i have this 2 codes:
/* Ext GWT - Ext for GWT
* Copyright(c) 2007-2009, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
package org.maksud.gwt.app.client;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.google.gwt.user.client.ui.RootPanel;
public class TestGXTApp extends LayoutContainer {
public void onModuleLoad()
{
TestGXTApp hello = new TestGXTApp();
RootPanel.get().add( hello );
}
}
package org.maksud.gwt.app.client;
import com.extjs.gxt.ui.client.event.ButtonEvent;
import com.extjs.gxt.ui.client.event.SelectionListener;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.extjs.gxt.ui.client.widget.Window;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.layout.FitData;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
public class HelloWorldExample extends LayoutContainer {
public HelloWorldExample() {
setLayout(new FlowLayout(10));
final Window window = new Window();
window.setSize(500, 300);
window.setPlain(true);
window.setModal(true);
window.setBlinkModal(true);
window.setHeading("Hello Window");
window.setLayout(new FitLayout());
TabPanel panel = new TabPanel();
panel.setBorders(false);
TabItem item1 = new TabItem("Hello World 1");
item1.addText("Hello...");
item1.addStyleName("pad-text");
TabItem item2 = new TabItem("Hello World 2");
item2.addText("... World!");
item2.addStyleName("pad-text");
panel.add(item1);
panel.add(item2);
window.add(panel, new FitData(4));
window.addButton(new Button("Hello"));
window.addButton(new Button("World"));
Button btn = new Button("Hello World");
btn.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
window.show();
}
});
add(btn);
}
}
no erros only blank screen:
http://img28.imageshack.us/img28/1904/99393435.png
dpope22
09-25-2009, 10:27 AM
public class TestGXTApp extends LayoutContainer {
public void onModuleLoad()
{
TestGXTApp hello = new TestGXTApp();
RootPanel.get().add( hello );
}
}
Looks like an infinite loop if onModuleLoad() is called when the class is constructed. Either way, your class doesnt have anything in it. TextGXTApp is an empty class (no widgets in it, nothing to display)
Change the TestGXTApp class to HelloWorldExample.
Arno.Nyhm
09-25-2009, 02:42 PM
your GxtApp need to include a different entrypoint, otherwise the app did not start.
in your onModuleLoad you need to use the HelloWorldExample
and not your GxtApp
next thing: i dont know if its ok. but i see you start the AppEngine Server - but you point to localhost:8080 - i dont test the appengine stuff but this can also be a point. if you run it localy then the message should be an other:
http://code.google.com/intl/de-DE/appengine/docs/java/tools/eclipse.html#Running_the_Project
PS: and i would place the window in HelloWorldExample into a MyWindow extends window - so you can dive it better if you have more then one window.
dtondo
10-07-2009, 01:09 PM
Thanks i wil try and i will post soon :D
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.