Knowing the value of a FilterOptions selected in a column

UI Components for JSF
Post Reply
josejim
Posts: 6
Joined: 20 Dec 2010, 23:54

04 Mar 2011, 02:32

I need to filter data from multiple FilterOptions depending on the selection made. How I can know what value they selected?

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>


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 54 guests