Hello
GWT 2.4
I am getting the following exception trying to instantiate a CellTable
Caused by: java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.user.cellview.client.CellTable$Resources' (did you
forget to inherit a required module?)
The offending code is:
@UiField(provided=true)
CellTable<Role> derivedCellTable = new CellTable<Role>(20); <--
Fails during Instantiation
I get the same Exception instantiating a CellTable NOT in the UiField.
Code will work maybe 10% of the time. Not always. celltable seems
very tempermental.
Does anyone have any thoughts?
- thanks
My UIBinder is as follows:
-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- UIBinder -x-x-x-x-x-x-x-x-x-x-x-x-x-x-
x-
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:a="urn:import:net.company.controls.client"
xmlns:c="urn:import:com.google.gwt.user.cellview.client"
xmlns:p="urn:import:net.company.controls.client.panel"
xmlns:m="urn:import:net.company.admin.access.client.modules">
<ui:style>
.cellTable {
border: 1px solid #ccc;
}
.selectedLabel {
padding-left: 1px;
}
</ui:style>
<p:HtmlFlowPanel ui:field="panel">
<c:CellTable ui:field='derivedCellTable'/>
<c:CellTable ui:field='explicitCellTable'/>
</p:HtmlFlowPanel>
</ui:UiBinder>
-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- UIBinder -x-x-x-x-x-x-x-x-x-x-x-x-x-x-
x-
-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- JAVA CLASS -x-x-x-x-x-x-x-x-x-x-x-x-
x-x-x-
public class RolesView extends ViewBase implements ApplicationView {
// A simple data type that represents a role.
public class Role {
String roleName = null;
String resourceList = "";
public Role(String name, String resourceArray) {
roleName = name;
resourceList = resourceArray;
}
}
/* The Interface HomeViewUiBinder. */
interface HomeViewUiBinder extends UiBinder<Widget, RolesView> {
}
@UiField (provided=true)
HtmlFlowPanel panel = new HtmlFlowPanel(); // net.company
homegrown object
@UiField(provided=true)
CellTable<Role> derivedCellTable = new CellTable<Role>(20); <--
Fails during Instantiation
@UiField(provided=true)
CellTable<Role> explicitCellTable = new CellTable<Role>(20);
/* The UI binder. */
private static HomeViewUiBinder uiBinder =
GWT.create(HomeViewUiBinder.class);
final String DATA_PROVIDER = "dataProvider";
final String TAB_PANEL_ITEM = "tabPanelItem";
final String LIST_OF_ROLES_OBJECTS = "resourceList";
final String ROLE_CELL_TABLE = "cellTable";
final String DERIVED="derived";
final String EXPLICIT="explict";
ListDataProvider<Role> derivedDataProvider = new
ListDataProvider<Role>();
ListDataProvider<Role> explicitDataProvider = new
ListDataProvider<Role>();
public RolesView() {
super();
uiBinder.createAndBindUi(this);
}
}
-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- JAVA CLASS -x-x-x-x-x-x-x-x-x-x-x-x-
x-x-x-
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.