JSF: how to programmatically flush Facelets cache (so that it can be launched with a single button) in the Glassfish web application

This question is raised from Mac: JSF: why aren't JSF web applications at development stage always catching component component changes? . If I can answer this question here, I will have a brute force strategy to get around this problem associated with another post, but this question has an independent goal here.

Q: How can I programmatically force to clear the Facelets cache in a running web application (so that I can create a listener that is called from the [Clear cache bot] button)?

I am using NetBeans8.1beta and Glassfish4.1, with deployments through the project / assembly / NetBeans network.

+5
source share

Source: https://habr.com/ru/post/1245403/


All Articles