-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intializing table in GWTP - best practics #19
Comments
If I remember correctly a GWTP view has an onAttached method that is called when the View is attached. Verified here: https://github.com/ArcBees/GWTP/blob/master/gwtp-core/gwtp-mvp-client/src/main/java/com/gwtplatform/mvp/client/ViewImpl.java#L188 |
You are right, but onAttach() method is called every time presenter will be put to slot.
Seems that it is not looks nice... |
I will consider making it possible to initialize the table before the DOM has been attached. Will look into that over the next few days. |
Fixes are in the latest SNAPSHOT and the rc6 |
In all examples table is initialized inside Composite widget in onLoad().
I'm using GWTP and I have tried to initialize table inisde View constructor but failed because widget is not attached to DOM in this time.
Which is the better place to initialize table inside GWTP view if I don't want to create Composite widget for each table?
The text was updated successfully, but these errors were encountered: