[Duvida] JSF e panelGrid

0 respostas
maxmustang

Bem galera é o seguinte, como faço para montar um gridpanel bonito e elegante??

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@taglib prefix="stella" uri="http://stella.caelum.com.br/faces" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>LaFleur </title>
</head>
<body>
 	<h:form>
 		<h:panelGrid columns="2" >
 			<h:outputLabel value="Nome" />
 			<h:inputText id="Nome" value="#{pessoaFisicaBean.pessoaFisica.nome}"/>
 			<h:outputLabel value="Email" />
 			<h:inputText id="Email" value="#{pessoaFisicaBean.pessoaFisica.email}" />
 			<h:outputLabel value="CPF" for="CPF" />
 			<h:inputText id="CPF" value="#{pessoaFisicaBean.pessoaFisica.CPF}">
 				<stella:validateCPF formatted="true" />
 			</h:inputText>
 			<h:message for="CPF" />
   		</h:panelGrid>
   		<h:commandButton id="Botao" value="Testar" action="#{pessoaFisicaBean.salvar}" />
   		
 	</h:form>
</body>
</html>
</f:view>

com só isso, ele fica até organizado direitinho, mas como faço para colocar cores tipo zebra :smiley:
obr

Criado 5 de maio de 2010
Respostas 0
Participantes 1