I have a small test page that I have deployed on both Tomcat 5.5.9 and on
JBoss (4.0.2 and 4.0.3RC2). Tomcat 5.5.9 and JBoss 4.02.2 uses standalone
MyFaces 1.1.0, JBoss 4.0.3RC2 uses integrated MyFaces 1.1.0.
On the standalone Tomcat 5.5.9 the following code is added to the HEAD
section of the resulting HTML page (linebreaks added by me):
<link rel="stylesheet"
href="/simple/faces/myFacesExtensionResource/tabbedpane.
HtmlTabbedPaneRenderer/11266487/defaultStyles.css"
type="text/css"/>
<script src="/simple/faces/myFacesExtensionResource/tabbedpane.
HtmlTabbedPaneRenderer/11266487/dynamicTabs.js"
type="text/javascript"></script>
<style type="text/css">
#_id1__id2 .myFaces_panelTabbedPane_activeHeaderCell input,
#_id1__id2 .myFaces_panelTabbedPane_pane,
#_id1__id2 .myFaces_panelTabbedPane_subHeaderCell{
background-color:white;
}
</style>
On both JBoss 4.0.2 and 4.0.3RC2 these lines are not added. The result is
that the TabbedPane is not rendered with the default stylesheet, and I get
JavaScript errors when toggling panes due to the missing JavaScript.
Does anybody know what the problem is?
-Frode Oldervoll
The test page:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/extensions" prefix="t"%>
<f:view>
<f:verbatim>
<html><head><title>Test</title></head><body>
</f:verbatim>
<h:form>
<t:panelTabbedPane>
<t:panelTab label="Tab 1">
<h:outputText value="Content 1" />
</t:panelTab>
<t:panelTab label="Tab 2">
<h:outputText value="Content 2" />
</t:panelTab>
<t:panelTab label="Tab 3">
<h:outputText value="Content 3" />
</t:panelTab>
</t:panelTabbedPane>
</h:form>
<f:verbatim>
</body></html>
</f:verbatim>
</f:view>