Can you post how exactly you extended the view/presenter? If you're just trying to edit the Order entity fields that appear in the list view on the left, in your subclassed setup() method you could do something like this:
Code: Select all
getPresenterSequenceSetupManager().addOrReplaceItem(new PresenterSetupItem("orderDS", new OrderListDataSourceFactory(), new AsyncCallbackAdapter() {
public void onSetupSuccess(DataSource top) {
setupDisplayItems(top);
((ListGridDataSource) top).setupGridFields(new String[]{"customer.firstName", "customer.lastName", "name", "orderNumber", "status", "submitDate"}, new Boolean[]{true, true, true, true, true, true});
getDisplay().getListDisplay().getGrid().sort("submitDate", SortDirection.DESCENDING);
}
}));
That snippet will make all of the fields editable in the grid.
If you're trying to make the items in the form view on the right editable, there is 1 line at the end of the bind() method of OrderPresenter that is easy to miss on line 154:
In your subclass, you can add this:
Code: Select all
@Override
protected void bind() {
super.bind();
setReadOnly(false);
}
Let me know if that helps.