Does Widget.onLoad() really not get called?
If so, what should I use to trigger logic that should happen after a Layout and its contents have been rendered and attached to the DOM?
I want to load data from a ds manually whenever a particular Layout is displayed. By 'manually' I mean for example a ListGrid with settings setSaveLocally(true) & setAutoFetchData(false) which needs to have some other code get the data and load it to the grid. I would expect to do the data loading in an override of GWT's Widget.onLoad(). But my onLoad() doesn't ever get called.
Here's some pseudocode of of my layout class....
I'm confused because Layout ultimately extends Widget and so /should/ have its onAttach() and onLoad() methods called.
help!
,chris
If so, what should I use to trigger logic that should happen after a Layout and its contents have been rendered and attached to the DOM?
I want to load data from a ds manually whenever a particular Layout is displayed. By 'manually' I mean for example a ListGrid with settings setSaveLocally(true) & setAutoFetchData(false) which needs to have some other code get the data and load it to the grid. I would expect to do the data loading in an override of GWT's Widget.onLoad(). But my onLoad() doesn't ever get called.
Here's some pseudocode of of my layout class....
Code:
public class MyLayout extends VLayout { public MyLayout() { // add forms and lists etc. that will get data loaded manually } @Override protected void onLoad() { super.onLoad(); // Want to load data here, but ... // This method is never called, apparently. } @Override protected void onAttach() { super.onAttach(); // This method is also never called, apparently. } }
help!
,chris
Comment