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!
Use rich:dataGrid to achieve the output. rich:dataGrid having the columns attribute.
http://livedemo.exadel.com/richfaces-demo/richfaces/dataGrid.jsf?c=dataGrid&tab=usage