How can I merge columns or rows in JSF 2.0?
Code
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<h:form>
<h:commandButton action="#{clienteController.novo}" value="CadastrarNovo"/>
<h:dataTable value="#{clienteController.clientes}" var="cliente" border="1">
<h:column>
<f:facet name="header">Codigo</f:facet>
#{cliente.codigo}
</h:column>
<h:column>
<f:facet name="header">Nome</f:facet>
#{cliente.nome}
</h:column>
<h:column>
<f:facet name="header">Idade</f:facet>
#{cliente.idade}
</h:column>
<h:column >
<f:facet name="header">Acao</f:facet>
<h:commandLink action="#{clienteController.editar}">Editar
<f:setPropertyActionListener value="#{cliente}" target="#{clienteController.cliente}" />
</h:commandLink>
</h:column>
<h:column>
<h:commandLink action="#{clienteController.remover}">Remover
<f:setPropertyActionListener value="#{cliente}" target="#{clienteController.cliente}" />
</h:commandLink>
</h:column>
</h:dataTable>
</h:form>