Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Custom Datasource

$
0
0
Hi all,

Could you help me to understand what I am making wrong? My Firm would be interested in your Server Side Professional version but we would like to clarify some points before to buy it...

I would like to extend a Server Side Datasource following the instructions in http://www.smartclient.com/smartgwt/...alBuilder.html / [Adding Custom DataSources to Visual Builder ] and http://www.smartclient.com/smartgwt/...ponentXML.html / [Custom Components] but then I fail to register my class for reflection:

Compiling module com.smartgwt.sample.CustomDS
Computing all possible rebind results for 'com.smartgwt.sample.client.MyMetaFactory'
Rebinding com.smartgwt.sample.client.MyMetaFactory
Invoking generator com.smartgwt.rebind.MetaBeanFactoryGenerator
[ERROR] com.smartgwt.sample.client.MyMetaFactory::getMyDataSourceFactory: for now, factories can only be created for Canvas or DataClass and subclasses.
[ERROR] Errors in 'com/smartgwt/sample/client/CustomDS.java'

I wrote a Subclass of com.smartgwt.client.data.DataSource and an Interface
Code:

public interface MyMetaFactory extends BeanFactory.MetaFactory {
    BeanFactory<MyDataSource> getMyDataSourceFactory();   
}

which I register in the EntryPoint

Another requirement would be the possibility to configure new properties of a custom Datasource in the Datasource Editor in the Visual Builder...

Thank you very much for your help
Best regards
Fabio

Viewing all articles
Browse latest Browse all 4756

Trending Articles