On Sat, 16 Aug 2014 21:43:09 -0300, Sumanth <roasteddra...@gmail.com>
wrote:
Hi Tapestry Gurus,
Hi!
I'm working on a project where there is a layout component. I have
certain
other components which are part of this layout for example user login,
messages from other user (equivalent to facebook top bar). Now if the
user has permissions then these compnents are made visible . The problem
I'm
facing is on each and every page load/ new page, the layout is reloading
making server calls to render the compoents. For example if on the left
I've links to other pages like dashboard and reports, when I click from
home page to dashboard , the layout components are reloading making
server calls and re-rendering.
Cache the results of the server calls to have better performance. It's not
even specific to Tapestry: you'd do this in any framework.
So my question is, Is it possible to keep these components as part of the
layout but prevent un-necessary server calls when I traverse to other
pages
I'm not sure what you mean by unnecessary server calls. Tapestry by itself
won't cause any unnecessary server call. It just render components and
trigger events. Your code that handle that is the one doing server calls.
They're calls in your code, so you're the one who know better than anyone
what calls are unnecessary and which ones are can be cached.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org