PDA

View Full Version : New user, Eclipse, GWT. How do I find these widgets in my Eclipse project?



Booth Martin
24 Mar 2008, 7: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
19 Sep 2009, 6: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
21 Sep 2009, 7:10 AM
What sort of problems are you running into? What errors are you seeing?

dtondo
21 Sep 2009, 6: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
22 Sep 2009, 7: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
22 Sep 2009, 8:32 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?


yes, but i see no more errors there :(

dpope22
22 Sep 2009, 8:35 AM
Can you post the code you are trying to run?

dtondo
22 Sep 2009, 5: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
22 Sep 2009, 6: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
23 Sep 2009, 7: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
23 Sep 2009, 8:26 AM
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
23 Sep 2009, 8:33 AM
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
24 Sep 2009, 6: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
25 Sep 2009, 6: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
25 Sep 2009, 10:42 AM
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
7 Oct 2009, 9:09 AM
Thanks i wil try and i will post soon :D

kanister
12 Jan 2010, 3:55 AM
for sample...

http://gwt-ext.com/wiki/index.php?title=Using_Eclipse

i cant find the "GWT Home text field"

--------------------------------

I guess it depends on eclipse i once have seen this field. but then i got another problem. I decided to switch to SmartClient if Ext team wont give true tutorial of step by step setup of averything neccessaty to combine Eclipse GWT and ExtJS and i mean version issues, plugins like Cypal and also stateing differences between EXT-GWT and GWT-EXT.. i just want to program not to struggle with installations for 5 times with no success.

micgala
12 Jan 2010, 4:32 AM
Kanister.

You should then read GWT documentation...
Because, if you don't know, you should look there for how to configure GWT + Eclipse together.

GXT needs no configuration at all... nothing.
Just add the jar to your project, add the resources and that is it... what else do you want?

kanister
12 Jan 2010, 7:01 AM
instructions for adding gxt.jar (for my taste its a bit scrumbled and doesnt actualy tell how to add jar to project). do i suppose to add external jar or what?

Create a User Defined Library

Select Window > Preferences and select Java > Build Path > User Libraries in the preference tree.

Click the New button and name the library GWT_1_5. Select the new library and then click Add Jars. Navigate to where you unzipped the GWT download and select gwt-dev-[os].jar and gwt-user.jar

Assign New User Library To Your Project

Bring up your project's properties by right clicking the project name in the Package Explorer and selecting Properties from the context menu. Once open, select the Java Build Path item in the tree then select the Libraries tab.

Repeat the same steps and create another User Defined Library named GXT_1_0 and add the gxt.jar from the Ext GWT download.



what is missing after "....then select the Libraries tab.": click add library, select user libraries then mark your libs and save.

I also dare to think that sentence "Repeat same stepsand and create ...... " ought to be placed right before section "Assign new User Library for....." and not inside of it..

refered content : http://www.extjs.com/helpcenter/index.jsp?topic=/com.extjs.gxt.help/html/gettingstarted/setup.html

dtondo
13 Jan 2010, 3:41 AM
Some one can zip the eclipse IDE with a start project ?

Thanks