Refershing tabs on click

Hi,

I have any tabs on my mail screen of application. Each tab contains many widgets/components like sections, sub-tabs, dynamic forms and detailed viewers etc.

I do not want my all tabs to fetch data from server at the time of page loading. I want, whenever a user clicks the tab, it should refresh the whole tab (including not only data, but also the components, like canvas, detailed viewer etc). This means when a user click my tab, tab should become blank with “Loading …” message and should get the whole tab contents again from server.

I was thinking to achieve this by using viewLoader component. Kindly suggest me if there is a better solution to it.

You can updatePane with a Label with your message in it, then once the data is loaded, updatePane again with the components. But we’d generally recommend simply leaving the components in place and telling them to fetchData() - not sure why you would try to avoid this as it shows the user more progress than a simple text message saying "Loading… " ?