We are using tag
files to facilate includes of content.
We are having
various problems (particularly with Internet Explorer), where the server side
component tree is not rendered correctly.
Am I violating a
best-practice by using tag files this way?
------------------------main.jsp-----------------------------------------------------
<[EMAIL PROTECTED] uri="http://myfaces.apache.org/tobago/component"
prefix="t"%>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core" prefix="f"%>
<[EMAIL PROTECTED] tagdir="/WEB-INF/tags/layout" prefix="layout"%>
<jsp:scriptlet>
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setDateHeader("Expires", 0); //prevents caching at the proxy server
response.setHeader("Cache-Control", "private"); // HTTP 1.1
response.setHeader("Cache-Control", "no-store"); // HTTP 1.1
response.setHeader("Cache-Control", "max-stale=0"); // HTTP 1.1
</jsp:scriptlet>
<f:view>
<t:page id="mainPage" width="1000px">
<f:facet name="layout">
<t:gridLayout rows="1*;9*"/>
</f:facet>
<t:panel id="mainPanelHeader">
<layout:header/>
</t:panel>
<t:panel id="mainPanelContent">
<layout:content/>
</t:panel>
</t:page>
</f:view>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core" prefix="f"%>
<[EMAIL PROTECTED] tagdir="/WEB-INF/tags/layout" prefix="layout"%>
<jsp:scriptlet>
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setDateHeader("Expires", 0); //prevents caching at the proxy server
response.setHeader("Cache-Control", "private"); // HTTP 1.1
response.setHeader("Cache-Control", "no-store"); // HTTP 1.1
response.setHeader("Cache-Control", "max-stale=0"); // HTTP 1.1
</jsp:scriptlet>
<f:view>
<t:page id="mainPage" width="1000px">
<f:facet name="layout">
<t:gridLayout rows="1*;9*"/>
</f:facet>
<t:panel id="mainPanelHeader">
<layout:header/>
</t:panel>
<t:panel id="mainPanelContent">
<layout:content/>
</t:panel>
</t:page>
</f:view>
-------------------------------layout/content.tag-------------------------------------
<[EMAIL PROTECTED] uri="http://myfaces.apache.org/tobago/component"
prefix="t"%>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core" prefix="f"%>
<[EMAIL PROTECTED] tagdir="/WEB-INF/tags/tabs" prefix="tabs"%>
<t:panel id="contentPanel">
<f:facet name="layout">
<t:gridLayout margin="6" cellspacing="4"/>
</f:facet>
<t:tabGroup switchType="reloadTab" id="contentTabGroup" state="#{main.tabState0}">
<t:tabChangeListener type="com.jak.EMP.SimpleTabChangeListener"
binding="#{main.tabChangeListener}" />
<t:tab label="Quarantine" tip="Quarantined messages suspected to be spam" id="contentTabQuarantine">
<t:panel id="contentQuarantinePanel">
<tabs:quarantine/>
</t:panel>
</t:tab>
<t:tab label="White list" tip="White list senders from which EMP will always accept messages" id="contentTabWhitelist">
<t:panel id="contentWhitelistPanel">
<tabs:whitelist/>
</t:panel>
</t:tab>
<t:tab label="Statistics" tip="Charts and graphs displaying filtering statistics" id="contentTabStatistics">
<t:panel id="contentStatisticsPanel">
<tabs:charts/>
</t:panel>
</t:tab>
</t:tabGroup>
</t:panel>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core" prefix="f"%>
<[EMAIL PROTECTED] tagdir="/WEB-INF/tags/tabs" prefix="tabs"%>
<t:panel id="contentPanel">
<f:facet name="layout">
<t:gridLayout margin="6" cellspacing="4"/>
</f:facet>
<t:tabGroup switchType="reloadTab" id="contentTabGroup" state="#{main.tabState0}">
<t:tabChangeListener type="com.jak.EMP.SimpleTabChangeListener"
binding="#{main.tabChangeListener}" />
<t:tab label="Quarantine" tip="Quarantined messages suspected to be spam" id="contentTabQuarantine">
<t:panel id="contentQuarantinePanel">
<tabs:quarantine/>
</t:panel>
</t:tab>
<t:tab label="White list" tip="White list senders from which EMP will always accept messages" id="contentTabWhitelist">
<t:panel id="contentWhitelistPanel">
<tabs:whitelist/>
</t:panel>
</t:tab>
<t:tab label="Statistics" tip="Charts and graphs displaying filtering statistics" id="contentTabStatistics">
<t:panel id="contentStatisticsPanel">
<tabs:charts/>
</t:panel>
</t:tab>
</t:tabGroup>
</t:panel>

