1 of 1 people found this helpful
You can use c:if tags instead fo the rendered checks.
Not rendered components won't be part of the view tree and won't be evaluated therefore.
We have forbidden usage of JSTL tags wich Facelet due to many in problems. Not sure (because it was one year ago) but JSTL tags are evaluated at page load, and not on each visit.
But I will test it.
Subsidiary question of my first post : Which features is covered by ExtendedPartialViewContextImpl#visitActivatorAtRender ?
Using c:if works.
Also I have questionned my team about JSTL tag usage with Facelet. The problem comes from Compile-Time/JSF invocation. It is explain at : http://www.znetdevelopment.com/blogs/2008/10/18/jstl-with-jsffacelets/
In this condition, the workaround is acceptable. So, thank you for the help.
However, I'm still curious about ExtendedPartialViewContextImpl#visitActivatorAtRender.
Comparing with JSF 2.0.6 source code, the PartialViewContextImpl#processComponents method uses VisitHint#SKIP_UNRENDERED and VisitHint#EXECUTE_LIFECYCLE.