lgdito
11 Aug 2009, 9:56 AM
Hi - this is Lars, who really likes GXT!!!
But I have a problem with the portlet. I´m searching for a way to refresh / reload a portlet.
I´m Using GXT 2.0.1 and GWT 1.7 with eclipse plugin 3.5
My Scenario:
I try to show a Grid in a portlet. This is not the problem itself - pricipial this works fine.
My Problem:
But if i try to fill the grid from a ListStore wich is filled by an AsyncCallback i have an empty portlet with no data.
I think this is the reason:
This is becaus the AsyncCallback is slower than the GUI. Means the Gui shows the portlet faster then the RPC fills it with data.
I tried the following to find a solution:
I made a button which calls
porteltName.hide();
porteltNeme.show();
this doesn´t work :-(
I tried also the following:
portletName.removeFromParent();
portal.add(portletName);
this also didn´t worked.
After that:
I didn´t add the portlet at the initial start of the app.
Instead a made a button which made the following:
portal.add(portletName);
E Voila:
After app is loaded i wait 2 Seconds than press the button and the portlet comes up with the Grid and all my data is shown in the portlet.
Now my question:
How can a refresh / reload a portlet / portlet content???
I can´t find anything that works and now i hope anybody here has an idea!
Thanks a lot for every hint
Lars.
But I have a problem with the portlet. I´m searching for a way to refresh / reload a portlet.
I´m Using GXT 2.0.1 and GWT 1.7 with eclipse plugin 3.5
My Scenario:
I try to show a Grid in a portlet. This is not the problem itself - pricipial this works fine.
My Problem:
But if i try to fill the grid from a ListStore wich is filled by an AsyncCallback i have an empty portlet with no data.
I think this is the reason:
This is becaus the AsyncCallback is slower than the GUI. Means the Gui shows the portlet faster then the RPC fills it with data.
I tried the following to find a solution:
I made a button which calls
porteltName.hide();
porteltNeme.show();
this doesn´t work :-(
I tried also the following:
portletName.removeFromParent();
portal.add(portletName);
this also didn´t worked.
After that:
I didn´t add the portlet at the initial start of the app.
Instead a made a button which made the following:
portal.add(portletName);
E Voila:
After app is loaded i wait 2 Seconds than press the button and the portlet comes up with the Grid and all my data is shown in the portlet.
Now my question:
How can a refresh / reload a portlet / portlet content???
I can´t find anything that works and now i hope anybody here has an idea!
Thanks a lot for every hint
Lars.