Skip to main content

Facelets View Building and Caching

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
Ben_Developer
Offline
Joined: 2011-08-26

Hi, I'm currently using Facelets 1.1.15 on my JSF/Richfaces/Seam project and having a performance issue. For every ajax request I'm seeing that facelets is rebuilding the entire component tree in addition to rendering the view. In richfaces tags I'm using reRender attribute so only a small part of the page should be reRendered. The issue is we have a page with hundreds of fields and it takes several seconds to build and render initially, which is ok. We have designed all tasks within the page to be partial page updates, however each task still takes a long time to complete which we are finding is all facelets component tree build time. Can somone please explain to me if facelets needs to build the entire component tree for every small ajax request or something is wrong with out setup? Also any insight into how facelets caches views would be helpful, this has been hard to find any docs or examples on how this works and what parameters are available in web.xml to influence it. The below links are questions I've asked to the various other framework teams, and no one has given an answer (links have more details to my setup):

http://seamframework.org/Community/ViewRebuildOnEachAjaxRequest
http://community.jboss.org/thread/171413

http://stackoverflow.com/questions/7190225/jsf-view-getting-rebuild-on-each-ajax-request

Any insight into this problem woudl be grealty appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mybirendra
Offline
Joined: 2011-09-05

I am not sure but can we skipp falcelete validation while building app?
http://birenj2ee.blogspot.com/2011/07/skip-or-excludingdisabling-jsp.html