Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Working in dev mode but not in "server" mode...

    Hi,

    I have a weird problem. I am not sure if it is on the GWT side or on the SmartGwt side...

    The application I am working on is getting very huge and I want to reduce the initial load time by loading only what is needed.
    My application is based on tabs, and my goal is to load only the content of the current tab.
    I did this by creating empty tabs and use the "addTabSelectedHandler" to initialize the content of each tab when the user select it.
    When running in development mode, it is working great. I even added a unload method to my tabs.
    Everything was perfect. Initial load of my application was very fast because only the content of my first tab was loaded.

    Then... I compiled my project to create a war file and put it on a Tomcat server. This time it is not working as expected. My first tab is not initialized!! It is empty. If I click on another tab, the other tab is loaded correctly and if I go back on my fist tab it is now appearing correctly!
    I put some traces in my code and I can see that it is really going into my "init" method and the layout is really added (and all his members). But nothing is displayed. No error messages are generated too.
    I even tried to call the "draw" and "redraw" method manually, but nothing is working!
    Any ideas? Clues?

    Or any idea how to achieve my goal using a different approach?
    And yes I am already using GWT.runAsync everywhere....
Working...
X