Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/04/2007, 12:04
carpinho
 
Fecha de Ingreso: agosto-2005
Mensajes: 7
Antigüedad: 18 años, 9 meses
Puntos: 0
Urgente!!! DisplayTag - filas pares e impares de diferente color en una tabla

Por favor necesito urgente diferenciar las filas de que muestro en mi tabla poniendo de diferentes colores las filas pares y las impares. Alguien tiene la remota idea de como se hace esto??? espero no estar repitiendo una pregunta anteriormente formulada.

El codigo maso va asi:
Código:
<logic:present name="ConsultaForm" property="beanList" scope="session">
                        <display:table
                            name="sessionScope.ConsultaForm.beanList"
                            pagesize="3" id="personas"      
                            requestURI="/ConsultaIntranet-ViewController-context-root/Consulta.do?method=siguienteLista"                
                            cellpadding="3" cellspacing="1">                                        
                            <% Integer indiceFila = (Integer)pageContext.getAttribute("personas_rowNum");
                            int indice = 0;
                            if (indiceFila!=null) indice=(indiceFila.intValue())-1;%>
                            <display:column title="Sec." headerClass="tdTitList" align="left" sortable="false" class="tdLabel"><%=indice+1%></display:column>
                            <display:column title="Doc. Id"   headerClass="tdTitList"  property="strNroDocumento" align="left" sortable="false" class="tdLabel"/>
                            <display:column title="Autogenerado"  headerClass="tdTitList"  property="strAutogenerado" align="left" sortable="false" class="tdLabel"/>                          
                            <display:column title="Cen. Asistencial"  headerClass="tdTitList"  property="strCentro" align="left" sortable="false" class="tdLabel"/>
                            <display:column title="Apell. Paterno"   headerClass="tdTitList" property="strApellidoPaterno" align="left" sortable="false"  class="tdLabel"/>
                            <display:column title="Apell. Materno"  headerClass="tdTitList"  property="strApellidoMaterno" align="left" sortable="false"  class="tdLabel"/>
                            <display:column title="1ºNombre"   headerClass="tdTitList" property="strPrimerNombre" align="left" sortable="false"  class="tdLabel"/>
                            <display:column title="2ºNombre"  headerClass="tdTitList"  property="strSegundoNombre" align="left" sortable="false" class="tdLabel" decorator=""/>                                                
                        </display:table>
Saludos.