Hi I've been experimenting with SmartGWTEE's ComponentXML -> AddingHandlers example and have been trying to load a DataSource with test data.
Modifications to EntryPoint:
Modifications to supplyItem.data.xml
The DataSourceLoader responds with JavaScript definition of the DataSource, but I get:
"DataSource with ID: supplyItem not found".
Am I just using these API's incorrectly?
Can a DataSource XML definition work without a 'serverType'?
In the source code of the EE Showcase the supplyItem seems to be bound to a hibernate back end. I was hoping to get around copying the server code from the showcase and working with XML data for prototyping purposes.
SmartClient: v9.0p_2014-03-04/EVAL Deployment
GWT: 2.5.1
Modifications to EntryPoint:
Code:
import java.util.logging.Logger;
import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.data.DataSource;
public class AddingHandlers implements EntryPoint {
private final Logger log = Logger.getLogger("AddingHandlers");
@Override
public void onModuleLoad() {
String dsID = "supplyItem";
DataSource.load(dsID, null, false);
if (DataSource.get(dsID) == null) {
log.info("DataSource with ID: " + dsID + " not found");
}
}
}Code:
<DataSource
ID="supplyItem"
dataURL="/ds/supplyItem.data.xml"
recordXPath="//supplyItem"
clientOnly="true"
>
...other stuff is the same"DataSource with ID: supplyItem not found".
Am I just using these API's incorrectly?
Can a DataSource XML definition work without a 'serverType'?
In the source code of the EE Showcase the supplyItem seems to be bound to a hibernate back end. I was hoping to get around copying the server code from the showcase and working with XML data for prototyping purposes.
SmartClient: v9.0p_2014-03-04/EVAL Deployment
GWT: 2.5.1