Facelets is definitely better in my opinion.
Facelet include example:
Code:
<ice:panelTab disabled="#{mypage.disableTabs}" id="panelTab3" label="tab">
<ice:panelLayout id="panelLayout3" style="position: inherit; width: 100%; height: 100%;">
<ui:include src="#{mypage.tabcontent}"></ui:include>
</ice:panelLayout>
</ice:panelTab>
include's src in mypage backing:
Code:
public String getTabContent{
return "mytabContent.jsp"
}
entirety of mytabContent.jsp:
Code:
<div xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<ice:outputText value="Test"/>
Page content goes here!
</div>