Hello all,
I need to create a <rich:dataTable> that meets the following criteria:
<a4j:outputPanel> <rich:dataTable var="mechOut" value="#{anamanMatrixMB.mechanicOutput}"> <f:facet name="header"> <rich:columnGroup> <c:forEach var="#{mechOut}"> <rich:column> <h:outputLabel value="#{mechOut.rowCount}" /> </rich:column> </c:forEach> <rich:column> <h:outputLabel value="Soma" /> </rich:column> <rich:column> <h:outputLabel value="Média" /> </rich:column> </rich:columnGroup> </f:facet> <rich:subTable value="#{anamanMatrixMB.equipmentOutput}" var="#{eOut}"> <c:forEach items="#{mechOut.rowCount}"> <rich:column> <h:inputHidden value="#{eOut.getIdEquipment}" /> <h:inputHidden value="#{mechOut.getIdOutput}" /> <rich:inplaceSelect defaultLabel="..." valueChangeListener="#{valueChangeEvent method}" immediate="true" > <f:selectItem itemLabel="0" itemValue="0" /> <f:selectItem itemLabel="5" itemValue="5" /> <f:selectItem itemLabel="10" itemValue="10" /> </rich:inplaceSelect> </rich:column> </c:forEach> <rich:column> <h:outputText value="#{sum return method}" /> </rich:column> <rich:column> <h:outputText value="#{average return method}" /> </rich:column> </rich:subTable> </rich:dataTable> </a4j:outputPanel>
Hi,
Remove rich:subTable and try.