Hi All
Datasourse.load() function not working. I have done the bellow steps ..
1) Created a server.properties file under src folde.
2) I have mentioned project.datasources path in server.proeprties file. project.datasources: $webRoot/ds, $webRoot/shared/ds
3) Created a ds folder within war folder.
4) Created test.ds.xml file inside ds folder.
<DataSource ID="test" serverType="generic">
<fields>
<field name="label2" type="staticText" />
</fields>
<serverObject lookupStyle="spring" bean="testBean"/>
<operationBindings>
<binding operationType="fetch" serverMethod="fetch">
<serverObject lookupStyle="spring" bean="testBean" />
</binding>
</operationBindings>
</DataSource>
5) Created a applicationContext.xml file inside WEB-INF folder and define bean.
6) Inside onModuleLoad() methode in jada file I have write
try {
DataSource.load("test", new Function() {
@Override
public void execute() {
TextItem login = new TextItem("Login");
PasswordItem passwordItem = new PasswordItem("Password");
VLayout layout = new VLayout();
DynamicForm dynamicForm = new DynamicForm();
dynamicForm.setItems(login,passwordItem);
layout.addMember(dynamicForm);
RootPanel.get().add(layout);
}
});
} catch (Exception e) {
GWT.log("Error", e);
e.printStackTrace();
}
8. GWT,xml file...
<inherits name="com.smartgwt.SmartGwt"/>
Above process not working.
Even no exception found in console. Actually I cannot see any log in console.
1) Am I miss something to load DS. ?
2) How I enable log ?
GWt 2.8.0 SmartGWT 6.1p LGPL
Datasourse.load() function not working. I have done the bellow steps ..
1) Created a server.properties file under src folde.
2) I have mentioned project.datasources path in server.proeprties file. project.datasources: $webRoot/ds, $webRoot/shared/ds
3) Created a ds folder within war folder.
4) Created test.ds.xml file inside ds folder.
<DataSource ID="test" serverType="generic">
<fields>
<field name="label2" type="staticText" />
</fields>
<serverObject lookupStyle="spring" bean="testBean"/>
<operationBindings>
<binding operationType="fetch" serverMethod="fetch">
<serverObject lookupStyle="spring" bean="testBean" />
</binding>
</operationBindings>
</DataSource>
5) Created a applicationContext.xml file inside WEB-INF folder and define bean.
6) Inside onModuleLoad() methode in jada file I have write
try {
DataSource.load("test", new Function() {
@Override
public void execute() {
TextItem login = new TextItem("Login");
PasswordItem passwordItem = new PasswordItem("Password");
VLayout layout = new VLayout();
DynamicForm dynamicForm = new DynamicForm();
dynamicForm.setItems(login,passwordItem);
layout.addMember(dynamicForm);
RootPanel.get().add(layout);
}
});
} catch (Exception e) {
GWT.log("Error", e);
e.printStackTrace();
}
8. GWT,xml file...
<inherits name="com.smartgwt.SmartGwt"/>
Above process not working.
Even no exception found in console. Actually I cannot see any log in console.
1) Am I miss something to load DS. ?
2) How I enable log ?
GWt 2.8.0 SmartGWT 6.1p LGPL
Comment