I have many JSF pages which uses <ui:composition>
. Say I have following pages
common.xhtml
(here definehead
andbody
. It is parent/main/top page of all pages)p1.xhtml
(included incommon.xhtml
using<ui:composition>
)p2.xhtml
(included incommon.xhtml
using<ui:composition>
)p3.xhtml
(included incommon.xhtml
using<ui:composition>
and I want to reload JF and css files when this page hits)
I go through this link, but it will not gonna help me because I have to put the header in the common.xhtml
(this will stop caching all JF and CSS files, and I donot want this.)
How can I reload js and css files only when p3.xhtml
hits ?
EDIT
I added following in common.xhtml
<h:head>
....
<ui:insert name="metaTags" />
</h:head>
I added following in p3.xhtml
<ui:define name="metaTags">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />
</ui:define>
But still it didn't pick my updated js file.