I have a base datatable with 20 columns which is used by all reports...Some reports add additional columns, is there a way to put the code for the extra column in a separate JSF page and reference this some how?
e.g.
datatable.jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<h:dataTable value="#{table}" var="item" styleClass="report-table">
<f:subview id="tb1">
<jsp:include page="/jsp/include.jsp" />
</f:subview>
</h:dataTable>
include.jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<t:column >
<f:facet name="header">
<h:outputText value="User" />
</f:facet>
<h:outputText value="MyUser"></h:outputText>
</t:column>