GregT
11 Oct 2009, 2:49 PM
This works:
StlTest.testThis('test',function(result,e){
var t = e.getTransaction();
alert(Ext.encode(result) + "," + e.status + "," + e.message);
});
But this does NOT work:
var par = new Array();
par[0] = 'test';
par[1] = 'text';
StlTest.testThat(par,function(result,e){
var t = e.getTransaction();
alert(Ext.encode(result) + "," + e.status + "," + e.message);
});
Neither does this:
StlTest.testThat('foo','bar',function(result,e){
var t = e.getTransaction();
alert(Ext.encode(result) + "," + e.status + "," + e.message);
});
The Api.js looks OK:
Ext.app.REMOTING_API = {
url: Ext.app.PROVIDER_BASE_URL,
type: 'remoting',
actions: {
StlTest: [
{
name: 'loadStore'/*() => java.util.List */,
len: 0,
formHandler: false
},
{
name: 'testThat'/*(String, String) => String */,
len: 2,
formHandler: false
},
{
name: 'testThis'/*(String) => String */,
len: 1,
formHandler: false
}
]
}
}
Any advice appreciated, thanks!
StlTest.testThis('test',function(result,e){
var t = e.getTransaction();
alert(Ext.encode(result) + "," + e.status + "," + e.message);
});
But this does NOT work:
var par = new Array();
par[0] = 'test';
par[1] = 'text';
StlTest.testThat(par,function(result,e){
var t = e.getTransaction();
alert(Ext.encode(result) + "," + e.status + "," + e.message);
});
Neither does this:
StlTest.testThat('foo','bar',function(result,e){
var t = e.getTransaction();
alert(Ext.encode(result) + "," + e.status + "," + e.message);
});
The Api.js looks OK:
Ext.app.REMOTING_API = {
url: Ext.app.PROVIDER_BASE_URL,
type: 'remoting',
actions: {
StlTest: [
{
name: 'loadStore'/*() => java.util.List */,
len: 0,
formHandler: false
},
{
name: 'testThat'/*(String, String) => String */,
len: 2,
formHandler: false
},
{
name: 'testThis'/*(String) => String */,
len: 1,
formHandler: false
}
]
}
}
Any advice appreciated, thanks!