java - GWT loading elements dynamically on page load -


i have page should have dynamic count of check boxes, , inputs depends on data received database

now this:

  1. make rpc call on component load (getting data inputs)
  2. onsuccess add inputs dynamically on form

result: form displayed without content(because makes call async), after resizing, displays content (probably can fire resize event or redraw self, don't know how.. )

question: new in gwt, best way task? (now using gwt-ext http://gwt-ext.com/, think it's no matter )

update: refresh panel it's possible call dolayout();

i'm not familiar gwt-ext in "vanilla" gwt have 2 options:

  1. refresh widget (that should show result) in onsuccess method
  2. proceed rest of code not until result returned.

to bit more precise need more of code.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -