PDA

View Full Version : Problem getting items to update after RPC



ruister
27 Aug 2008, 2:28 PM
Hi,

I have a simple tree (using GWT Tree) and a FormPanel (GXT) and the tree gets loaded through rpc and the main view (following the explorer model) gets updates also using rpc. All the stuff worked when I was strictly using GWT, but since I began using a borderLayout, the rpc call does not update the tree or the main view. As soon as I either resize the browser window, or mode any of the panel borders the view is refreshed and the updates show up. One exception is that when the rpc call happens the first thing done is FormPanel.RemoveAll and in fact the content is Panel is cleared, but no new items are added until I resize the window a force a redraw.

Any ideas? Your help is greatly appreciated!

-Rui

BTW this happens with both the GWT browser as well as firefox.

Daniel Kurka
28 Aug 2008, 12:33 PM
you need to trigger a rendering by calling .layout() on the container beeing updated