Glen
unread,Nov 6, 2009, 9:43:39 AM11/6/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit, gl...@thewarholics.com
I am just learning to use these components.
I build a very small Dynamic Web Project with Eclipse 3.4 Ganymede
I am using java verison 1.6.0_10, GWT 1.7.0, and SmartGWT 1.3
I have a simple program (see below) that uses a ListGrid and adds it
to
a tab panel. It compiles and runs under Windows. It compiles but
does not
run under Redhat Linux.
I get a stack trace that starts at the line where I add the ListGrid
to the TabPanel
and works its way through the GWT library into SmartGWT and fails at
at com.smartgwt.client.widgets.BaseWidget.setProperty(NativeMethod)
at com.smartgwt.client.widgets.BaseWidget.setAttribute(BaseWidget.java:
498)
at com.smartgwt.client.widgets.Canvas.setWidth(Canvas.java.5453)
:
:
:
at org.glen.test.client.GlenTest.onModuleLoad(GlenTest.java:40)
/**
*
*/
package org.glen.test.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TabPanel;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
/**
* @author Glen
*
*/
public class GlenTest implements EntryPoint {
public void onModuleLoad() {
TabPanel tp = new TabPanel();
ListGrid lg = new ListGrid();
lg.setWidth(500);
lg.setHeight(224);
lg.setShowAllRecords(true);
ListGridField nameLGF = new ListGridField("name", "Name");
ListGridField bossLGF = new ListGridField("boss", "Boss");
lg.setFields(new ListGridField[] { nameLGF, bossLGF});
lg.setData(TestData.getRecords());
lg.setCanResizeFields(true);
tp.add(lg, "Employees");
RootPanel.get().add(tp);
}
}