0 Replies Latest reply on Feb 27, 2012 12:21 PM by andres bohorquez

    How can I add behavior to the method of sorting fo rich:column?

    andres bohorquez Newbie

      Hello guys...

       

      I have an application made with Seam and RichFaces.

      I want to add a behavior to the method of sorting; I would like to persist some data when users try to sorte my data table data, how can I do it?

       

      This is my code:

       

      <rich:dataTable id="listaNovedades" var="nov" reRender="paginador" ajaxSingle="false"

                                                  value="#{conciliacion.novedades.entityQueryDataModel}" rowClasses="row,odd"  style="FONT-SIZE:  11px; FONT-FAMILY: 'Tahoma';"

                                                  rows="#{conciliacion.pageSize}" rowKeyVar="rowNum"  width="100%" >       

                                                     

                                                                  <rich:column sortBy="#{nov.cedula}" >

                                                          <f:facet name="header">

                                                              #{messages['concialiacionNovedadesLinea.label.identificacion']}

                                                          </f:facet>

                                                          <div align="right"><b>

                                                                                       <h:outputText value="#{nov.cedula}" style="FONT-SIZE:  11px; FONT-FAMILY: 'Tahoma';"/></b>

                                                          </div>

                                                      </rich:column>

       

       

      Thanks in advance.