I need that when a user selects a school to display only the sites that belong to that school.
Code: Select all
<p:dataTable value="#{Cuota.ofertasAcademicas}"
var="oferta"
paginator="true" rows="10"
selection="#{Cuota.ofertasSeleccionadas}" >
<p:column headerText="School"
filterBy="#{oferta.sede.centroEducativo}"
filterOptions="#{Cuota.centroEducativoSelectItems}"
binding="#{Cuota.centroEducativoElegido}">
<h:outputText value="#{oferta.sede.centroEducativo}" />
</p:column>
<p:column headerText="Site"
filterBy="#{oferta.sede}"
filterOptions="#{Cuota.sedeSelectItems}" >
<h:outputText value="#{oferta.sede}" />
</p:column>
</p:dataTable>