スマート Gwt、Listgrid を使用しようとしています。
com.google.gwt.user.client.ui と smart gwt の両方を使用しています。ListGridRecords[] レコードに値があります。
テーブルに値を設定できません。
このコードはコンポジットです。
public TableDocument(Action action) {
initWidget(getTablePanel());
}
private HorizontalPanel getTablePanel() {
if (tablePanel == null) {
tablePanel = new HorizontalPanel();
tablePanel.setSize("144px", "75px");
addtable();
}
public void addtable() {
// TODO Auto-generated method stub
if(isDocumentPresent()==false){
tablePanel.add(getNoDocumentLabel());
}else{
tablePanel.remove(noDocumentLabel);
tablePanel.add(getDocumentTable()); <-- Error
}
}
private ListGrid getDocumentTable() {
if (documentTable == null) {
documentTable = new ListGrid();
documentTable.setSize("644px", "379px");
documentTable.setCanResizeFields(true);
documentTable.setFields(getStatus(),getIcon(),getName(),getSize(),getModifiedby(),getModifiedDate(),getMajorVersiosn());
addValuesToTable();
}
return documentTable;
}
public ListGridField getStatus() {
if (status == null) {
status = new ListGridField("statusIcon","");
}
return status;
}
public ListGridField getIcon() {
if (icon == null) {
icon = new ListGridField("documentIcon","");
}
return icon;
}
.
.
.// similar code for getSize(),getModifiedby(),getModifiedDate(),getMajorVersiosn()
private void addValuesToTable() {
documentTable.setData(documentsArray);//documentarray is records
}
----------
error
com.smartgwt.client.core.JsObject$SGWT_WARN: 12:15:47.778:WARN:ListGrid:isc_ListGrid_0:Unable to find clipHandle for drawn Canvas, elementId: isc_0
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.smartgwt.client.widgets.grid.ListGrid.create(ListGrid.java)
at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:361)
at com.smartgwt.client.widgets.BaseWidget.getElement(BaseWidget.java:276)
at com.smartgwt.client.widgets.BaseWidget.getElement(BaseWidget.java:264)
at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:94)
at com.google.gwt.user.client.ui.HorizontalPanel.add(HorizontalPanel.java:49)
at com.client.SmartGuI.TableDocument.addtable(TableDocument.java:158)
at com.client.GUI.TreeCmis$2.onSuccess(TreeCmis.java:157)
at com.client.GUI.TreeCmis$2.onSuccess(TreeCmis.java:1)
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at