Pessoal como sou novo no forum não sei como organizar o meu código para vocês olharem e analisarem de uma forma melhor. Mas vou tentar me expressar melhor, eu fiz exatamente tudo que o site do primefaces fala para poder mudar os themas da minha aplicação e infelizmente não está funcionando.
Segue meu código :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
</head>
<body>
<div align="center">
<h:form>
<h:panelGrid columns="2">
<f:facet name="header">
USUARIO
</f:facet>
<h:outputLabel for="firstname" value="Firstname: *" />
<p:inputText id="firstname" value="" label="Firstname" />
<h:outputLabel for="surname" value="Surname: *" />
<p:inputText id="surname" value="" required="true" label="Surname" />
<f:facet name="footer">
<p:commandButton type="button" value="Save" icon="ui-icon-check"
style="margin:0" />
</f:facet>
</h:panelGrid>
<br />
</h:form>
<h:form>
<p:panelGrid columns="2">
<f:facet name="header">
EMPREENDIMENTO
</f:facet>
<h:outputLabel for="firstname" value="Firstname: *" />
<p:inputText id="firstname" value="" label="Firstname" />
<h:outputLabel for="surname" value="Surname: *" />
<p:inputText id="surname" value="" required="true" label="Surname" />
<f:facet name="footer">
<p:commandButton type="button" value="Save" icon="ui-icon-check"
style="margin:0" />
</f:facet>
</p:panelGrid>
</h:form>
</div>
</body>
</html>
Eu quero que meu painelgrid fico exatamente assim :
http://www.primefaces.org/showcase/ui/panelGrid.jsf
Não sei o que está acontecendo na minha aplicação para ficar desse jeito.
minha config no web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>clubedowhisky</display-name>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>mint-choc</param-value>
</context-param>
</web-app>
Meus jars estão nas libs ja Primefaces 3.2 mint-choc 1.0.4
Espero a ajuda de vcs
* obs : Aproveitando o tópico, eu fiquei pensando será que é o xhtml que eu estou criando? são tantas opções que o Eclipse oferece que eu fico meio perdido!
