Duplicate Server Calls..............

Hi,
I had an simple “.jsp” file with smartClient components. An HTMLPane with contentsURL:“prototype/something.html” and data coming from Servlet.
The server calls to get the static page "something.html and the servlet data seems to be duplicated. If you open a page in FireFox and open the console in FireBug, the duplicate requests are shown…

I haven’t yet looked deeper into this, But would welcome any insight into this like ways to avoid duplicate calls,… to speed up the page rendering time…
Thankyou

Hi mpastamatla,
HTMLPanes will request their content from the server on draw().
Our best guess without any more info is that your HTMLPane is being draw()n twice - probably because it has autoDraw set to ‘true’ (meaning it draws at the top level when it is first initialized), and is then drawn as a child of another widget (meaning it must be cleared, then drawn again in the correct scope).

Try setting ‘autoDraw:false’ on the pane in question and see if the problem goes away.

Thanks
Isomorphic Software