Announcement

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

    fetch during initializing of the app

    Hi,

    During debugging I noticed that all the datasource performs a fetch when the client initialize the first page which is a login page. Is that normal? Can I control when the fetch will be executed?


    Thx

    #2
    Hi family.labrador,

    do you mean a j_security_check login page?
    If so, it is unlikely that a fetch will happen.

    If not, try to draw() (either direct calls or implicit) less. Everything drawn will fetch as needed. I remember you talked about 15 tabs in another thread, correct?

    You can lazy-load these with a Handler on the TabSet. Call setPane() only in the handler for tab 2-15. Draw Tab 1 on startup.

    Best regards,
    Blama

    Comment


      #3
      fetch during init of the app

      Hi Blama,

      thx again for your reply. I have 6 tabs with 15 items each (about). I tried to figure out about my serious performance problems, i need to get the app online today which works smart locally but not on server.

      No, its not a j_security_check login page but I will check the hint with the draw() and try the handler.

      Thx again

      Originally posted by Blama View Post
      Hi family.labrador,

      do you mean a j_security_check login page?
      If so, it is unlikely that a fetch will happen.

      If not, try to draw() (either direct calls or implicit) less. Everything drawn will fetch as needed. I remember you talked about 15 tabs in another thread, correct?

      You can lazy-load these with a Handler on the TabSet. Call setPane() only in the handler for tab 2-15. Draw Tab 1 on startup.

      Best regards,
      Blama

      Comment


        #4
        If you have a listGrid, you can setAutoFetch(false) , so that you can fetch whenever you need.

        Comment

        Working...
        X