JSF: How programmatically force clearing of the Facelets cache (so can trigger from a button) in a Glassfish web app

Viewed 583

This question is spawned from Mac: JSF: why are development stage JSF web apps not always catching composite component changes?. If I can answer the question here, I will have a brute-force strategy for getting around that other reported problem, but this question here has a standalone purpose.

Q: How can I programmatically force clearing of the Facelets in-memory cache in a running web app (so that I can create a listener that is invoked from a [Clear Facelets Cache] button) ?

I am using NetBeans8.1beta and Glassfish4.1, with deployment over the NetBeans project's /build/web.

0 Answers
Related