SmartGWT/Power/2.5p
I'm trying to use the ViewLoader class to load additional UI components at runtime, but so far I've had very little success.
My app puts up a modal dialog with a ViewLoader in it.
From the Javadoc it seems that I should be setting the ViewURL to the path of the generated JS file (mystuff.nocache.js).
I do this and the whole webpage (not just the modal dialog) goes white and everything disappears. The GUI Console says that all existing components now have a Position of 0,0
If I replace the mystuff.nocache.js with a simple file that just has enough JS to create a canvas with a black background it work fine.
The hint I get is that the Development Mode window reports "Unloading module strategy" (the main app)
I've searched all over but there's almost no information or examples for ViewLoader
I'm trying to use the ViewLoader class to load additional UI components at runtime, but so far I've had very little success.
My app puts up a modal dialog with a ViewLoader in it.
From the Javadoc it seems that I should be setting the ViewURL to the path of the generated JS file (mystuff.nocache.js).
I do this and the whole webpage (not just the modal dialog) goes white and everything disappears. The GUI Console says that all existing components now have a Position of 0,0
If I replace the mystuff.nocache.js with a simple file that just has enough JS to create a canvas with a black background it work fine.
The hint I get is that the Development Mode window reports "Unloading module strategy" (the main app)
I've searched all over but there's almost no information or examples for ViewLoader
Comment