Hi,
It seems like there is an issue in Chrome when loading several screen fragments (component XML) at the same time. I.e like this:
LayoutTest.ui.xml:
One.ui.xml
Two.ui.xml:
This works fine in FF.
In Chrome, when loading screen two, the Canvas.getById("Two"); in the execute() method always returns null (detected via debug mode). The screen loading order does not matter, the respective last method always fails.
The Screen-Loader's RPC response is identical in both cases.
Is this a known limitation of Chrome, a bug, or a minor thing that can be alleviated somehow?
SmartClient Version: v8.3p_2013-06-29/PowerEdition Deployment (built 2013-06-29)
Chrome 27.0.1453.116 m
Thanks,
fatzopilot
It seems like there is an issue in Chrome when loading several screen fragments (component XML) at the same time. I.e like this:
Code:
public void onModuleLoad() { RPCManager.loadScreen("LayoutTest", new LoadScreenCallback() { @Override public void execute() { final VLayout layout = (VLayout) Canvas.getById("VLayout0"); RPCManager.loadScreen("One", new LoadScreenCallback() { @Override public void execute() { ToolStrip one = (ToolStrip) Canvas.getById("One"); layout.addMember(one); } }, new String[]{RPCManager.ALL_GLOBALS}); RPCManager.loadScreen("Two", new LoadScreenCallback() { @Override public void execute() { ToolStrip two = (ToolStrip) Canvas.getById("Two"); layout.addMember(two); } }, new String[]{RPCManager.ALL_GLOBALS}); } }, new String[]{RPCManager.ALL_GLOBALS}); }
Code:
<isomorphicXML xmlns:fmt="WEB-INF/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"> <VLayout ID="VLayout0" autoDraw="false"></VLayout> <DataView ID="DataView0" width="100%" height="100%" overflow="hidden" autoDraw="true"> <members><Canvas ref="VLayout0"/> </members> <modulesDir>modules/</modulesDir> </DataView> </isomorphicXML>
Code:
<isomorphicXML xmlns:fmt="WEB-INF/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"> <ToolStrip ID="One" autoDraw="false"></ToolStrip> </isomorphicXML>
Code:
<isomorphicXML xmlns:fmt="WEB-INF/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"> <ToolStrip ID="Two" autoDraw="false"></ToolStrip> </isomorphicXML>
In Chrome, when loading screen two, the Canvas.getById("Two"); in the execute() method always returns null (detected via debug mode). The screen loading order does not matter, the respective last method always fails.
The Screen-Loader's RPC response is identical in both cases.
Is this a known limitation of Chrome, a bug, or a minor thing that can be alleviated somehow?
SmartClient Version: v8.3p_2013-06-29/PowerEdition Deployment (built 2013-06-29)
Chrome 27.0.1453.116 m
Thanks,
fatzopilot
Comment