How can I share one Restdatasource between 2 components (e.g. Grid and DynamicForm) ? There is no dataSource property. Common pattern for DataSource reusing is to create static reference for it.
- Code: Select all
private static MyDataSource ds;
public static MyDataSource getInstance(){
if (ds==null){
ds= new MyDataSource();
}
return ds;
}
but GwtDesigner creates code another way
How to use Restdatasources whithout getting messages about property beeing changed after component creation (e.g. id for datasource)? I think one way is choosing lazy initialisation pattern for code generation but I am not sure of it
thanks for any help