I am trying to load a screen from a custom servlet like this:
This is the output of the debug console for this request:
It seems, changing the action URL fails, it did not change at all. For strange reasons, an actionURL parameter is part of the locale instead.
Another example where I added an additional parameter to the request:
SmartClient Version: v8.3p_2013-05-09/PowerEdition Deployment (built 2013-05-09) DEV+PROD mode
FF 20.0.1
Chrome Version 26.0.1410.64 m
Code:
RPCRequest req = new RPCRequest();
req.setActionURL("/screen/loader");
RPCManager.loadScreen("Portal", new LoadScreenCallback() {
@Override
public void execute() {
...
}
}, globalIds, req);
Code:
{
"actionURL":"http://localhost:8080/product/gwt/com.aCompany.Main/sc/screenLoader",
"showPrompt":false,
"transport":"xmlHttpRequest",
"useSimpleHttp":true,
"promptStyle":"cursor",
"params":{
"screenName":"Portal",
"locale":{
"actionURL":"/screen/loader"
}
}
}
Another example where I added an additional parameter to the request:
Code:
{
"actionURL":"http://localhost:8080/product/gwt/com.aCompany.Main/sc/screenLoader",
"showPrompt":false,
"transport":"xmlHttpRequest",
"useSimpleHttp":true,
"promptStyle":"cursor",
"params":{
"screenName":"Portal",
"locale":{
"params":{
"someParam":"hola"
},
"actionURL":"/screen/loader"
}
}
}
FF 20.0.1
Chrome Version 26.0.1410.64 m
Comment