Hello,
I am coped with this problem for days. I did not manage to tell my Tomcat server NOT to cache any JSF pages.
Below you can see my first page that consists of the two include-directives that exist for JSP pages:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Cache-Control" content="must-revalidate">
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<title>My App</title>
<link rel="stylesheet" type="text/css" href="resources/styles/style.css" />
<link rel="stylesheet" type="text/css" href="resources/styles/tabstyle.css" />
</head>
<body>
<div class="maindiv">
<f:view>
<%@ include file="/WEB-INF/jsp/modules/header.jsp" %>
<jsp:include page="/WEB-INF/jsp/modules/main.jsp"/>
</f:view>
</div>
</body>
</html>
Only the "main.jsp" part should be dynamic. This part consists of other includes again:
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<t:panelTabbedPane serverSideTabSwitch="false" selectedIndex="0" activeTabStyleClass=""
inactiveTabStyleClass="" disabledTabStyleClass=""
activeSubStyleClass="" inactiveSubStyleClass="" tabContentStyleClass="">
<t:panelTab label="Filter and Search">
<jsp:include page="/WEB-INF/jsp/modules/filtersearch/filtersearch.jsp"></jsp:include>
</t:panelTab>
<t:panelTab label="Asset Management">
<jsp:include page="/WEB-INF/jsp/modules/asset/asset.jsp"></jsp:include>
</t:panelTab>
<t:panelTab label="User Management">
<jsp:include page="/WEB-INF/jsp/modules/user/user.jsp"></jsp:include>
</t:panelTab>
</t:panelTabbedPane>
The parts included contain other JSF code as well. And so on. Is this the problem? I want Tomcat to serve the pages per request. No cache! Because I am changing details in the inner JSF parts again and again.
EDIT: Even deleting the Tomcat WORK directory after having changed a JSF part and then reload the page does not help. Firefox AND IE keep loading the same old page.
Message was edited by:
rapthor