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:
- make rpc call on component load (getting data inputs)
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:
- refresh widget (that should show result) in
onsuccess
method - proceed rest of code not until result returned.
to bit more precise need more of code.
Comments
Post a Comment