udayanga
17 Jan 2010, 9:18 PM
hi,
I'm new to gwt-ext. :)
I used netbeans 6.8 to create a simple project(add new combo box).
but it's not compile.(:|
I have add and set all the paths and libraries.
this is my code segment in the onModuleLoad() method.
public void onModuleLoad() {
final Label label = new Label("Hello, GWT!!!");
final Button button = new Button("Click me!");
ComboBox c = new ComboBox();
c.setVisible(true);
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
label.setVisible(!label.isVisible());
}
});
RootPanel.get().add(c);
RootPanel.get().add(label);
}
This is the compilation error :-
GWT installation directory: F:\GWT\gwt-2.0.0\gwt-2.0.0
do-gwt-compile-15:
do-gwt-compile-16:
do-gwt-compile-17:
do-gwt-compile-20:
GWT Compiling client-side code.
Compiling module org.yournamehere.Main
Validating newly compiled units
[ERROR] Errors in 'file:/C:/Documents%20and%20Settings/udayanga/My%20Documents/NetBeansProjects/WebApplication1/src/java/org/yournamehere/client/MainEntryPoint.java'
[ERROR] Line 34: No source code is available for type com.extjs.gxt.ui.client.widget.form.ComboBox<D>; did you forget to inherit a required module?
Finding entry point classes
[ERROR] Unable to find type 'org.yournamehere.client.MainEntryPoint'
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
C:\Documents and Settings\udayanga\My Documents\NetBeansProjects\WebApplication1\nbproject\build-gwt.xml:134: The following error occurred while executing this line:
C:\Documents and Settings\udayanga\My Documents\NetBeansProjects\WebApplication1\nbproject\build-gwt.xml:232: Java returned: 1
BUILD FAILED (total time: 6 seconds)
Please explain me how to add codes in the
http://www.extjs.com/explorer/#combobox
link into my netbeans project.
thanks.
I'm new to gwt-ext. :)
I used netbeans 6.8 to create a simple project(add new combo box).
but it's not compile.(:|
I have add and set all the paths and libraries.
this is my code segment in the onModuleLoad() method.
public void onModuleLoad() {
final Label label = new Label("Hello, GWT!!!");
final Button button = new Button("Click me!");
ComboBox c = new ComboBox();
c.setVisible(true);
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
label.setVisible(!label.isVisible());
}
});
RootPanel.get().add(c);
RootPanel.get().add(label);
}
This is the compilation error :-
GWT installation directory: F:\GWT\gwt-2.0.0\gwt-2.0.0
do-gwt-compile-15:
do-gwt-compile-16:
do-gwt-compile-17:
do-gwt-compile-20:
GWT Compiling client-side code.
Compiling module org.yournamehere.Main
Validating newly compiled units
[ERROR] Errors in 'file:/C:/Documents%20and%20Settings/udayanga/My%20Documents/NetBeansProjects/WebApplication1/src/java/org/yournamehere/client/MainEntryPoint.java'
[ERROR] Line 34: No source code is available for type com.extjs.gxt.ui.client.widget.form.ComboBox<D>; did you forget to inherit a required module?
Finding entry point classes
[ERROR] Unable to find type 'org.yournamehere.client.MainEntryPoint'
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
C:\Documents and Settings\udayanga\My Documents\NetBeansProjects\WebApplication1\nbproject\build-gwt.xml:134: The following error occurred while executing this line:
C:\Documents and Settings\udayanga\My Documents\NetBeansProjects\WebApplication1\nbproject\build-gwt.xml:232: Java returned: 1
BUILD FAILED (total time: 6 seconds)
Please explain me how to add codes in the
http://www.extjs.com/explorer/#combobox
link into my netbeans project.
thanks.