1 Reply Latest reply on Sep 22, 2013 11:03 PM by newuser001

    rich:dataTable in two columns

    Jordi Cayuela Newbie

      Hello everyone!

       

       

      I am new to this world of JSF, and I have the following problem. I have to show a search on two different columns. For example if the result is:

       

       

      a

      b

      c

      d

       

       

      I have to show:

       

       

      a b

      c d

       

       

      My code is:

       

       

      <rich:dataTable id="tableLlistaCercaMunicipis" value="#{cercaMunicipiBean.dataModelMunicipis}" var="municipi" width="100%"  rows="#{cercaMunicipiBean.dataModelMunicipisRows}" styleClass="wizardTaulaBasica"   cellpadding="0" cellspacing="0">

            <rich:column>

                 <a4j:outputPanel layout="inline" styleClass="seleccionarMunicipi">

                                                                                            <a4j:support event="onclick" actionListener="#{cercaMapaBean.seleccionaMunicipi}"  reRender="panellLlistaMunicipis,panellStepsLlegenda" ajaxSingle="true" >

                                                                                                                                        <f:attribute name="municipi" value="#{municipi}" />

                      </a4j:support>

                      <h:outputText value=">> #{municipi.nom}" />

                </a4j:outputPanel>

           </rich:column>

      </rich:dataTable>

       

      thank you very much and forgive my English!