D2W-ListPageInterface using EOArrayDataSource doesn't display Changes?
D2W-ListPageInterface using EOArrayDataSource doesn't display Changes?
- Subject: D2W-ListPageInterface using EOArrayDataSource doesn't display Changes?
- From: Dieter Stollorcz <email@hidden>
- Date: Wed, 19 May 2010 17:10:24 +0200
Hi all,
I am using the following code in the Session of a D2W-WonderApplication.
public WOComponent listAnzeigengruppe() {
ListPageInterface lpi = (ListPageInterface)D2W.factory().pageForConfigurationNamed("ListAnzeigengruppe",this);
EOArrayDataSource ds = new EOArrayDataSource(EOClassDescription.classDescriptionForEntityName("Anzeigengruppe"), session().defaultEditingContext() );
ds.setArray(bpAnzeigengruppeList());
lpi.setDataSource(ds);
return (WOComponent)lpi;
}
After an update, delete or insert from this ERD2WListPage those changes are saved to the database but not displayed on the ListPage.
Using an EOFetchSpecification like the following works as expected.
...
EODatabaseDataSource ds = new EODatabaseDataSource(ec, "Anzeigengruppe");
EOFetchSpecification fs = new EOFetchSpecification("Anzeigengruppe", qual, null);
ds.setFetchSpecification(fs);
ListPageInterface lpi = (ListPageInterface) D2W.factory().pageForConfigurationNamed("ListAnzeigengruppe", this);
lpi.setDataSource(ds);
return (WOComponent) lpi;
}
Isn't it possible to use an EOArrayDataSource in this case or am i doing something wrong?
Greetings from Germany
Dieter Stollorcz _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden