galeera alguem ja conseguiu add o tema do primefaces com o jboss 6 e o primeface 2.2.1
nao consigo de jeito algum ja nao sei mais nem oq fazer.
galeera alguem ja conseguiu add o tema do primefaces com o jboss 6 e o primeface 2.2.1
nao consigo de jeito algum ja nao sei mais nem oq fazer.
aqui funciona normal, qual erro acontece ? já verificou se o caminho do css está certo ?
entao verifiquei e nada, nao da erro nenhum ele so nao aplica o thema q peguei la do site, fica cru como se fosse html puro
posta o código da pagina para verificarmos
Usei uma parte da minha e uma parte la do site do proprio primefazer pra fazer funcionar mas ate agora nada
<!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:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:p="http://primefaces.prime.com.tr/ui">
<head>
<link href="../css/template.css" rel="stylesheet" type="text/css" />
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<title><ui:insert name="title">Spraak</ui:insert></title>
</head>
<body>
<ui:composition template="../templates/template.xhtml">
<ui:define name="atualizacao">
<div id="configuracao">
<p:tabView effect="opacity" effectDuration="normal">
<p:tab title="Godfather Part I">
<h:panelGrid columns="2" cellpadding="10">
<p:graphicImage value="/images/godfather/godfather1.jpg" />
<h:outputText
value="The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T
hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect,
but given to ruthless violence whenever anything stands against the good of the family." />
</h:panelGrid>
</p:tab>
<p:tab title="Godfather Part II">
<h:panelGrid columns="2" cellpadding="10">
<p:graphicImage value="/images/godfather/godfather2.jpg" />
<h:outputText
value="Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream.
In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy,
killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows." />
</h:panelGrid>
</p:tab>
<p:tab title="Godfather Part III">
<h:panelGrid columns="2" cellpadding="10">
<p:graphicImage value="/images/godfather/godfather3.jpg" />
<h:outputText
value="After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family.
Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate." />
</h:panelGrid>
</p:tab>
</p:tabView>
</div>
</ui:define>
</ui:composition>
</body>
</html>
usa o firebug e ve se ta achando esses links do css
<link href="../css/template.css" rel="stylesheet" type="text/css" />
<link href="../css/content.css" rel="stylesheet" type="text/css" />
90% de chance de ser isso.
Eu uso o firefox 4 ai no console web (CTRL+SHIFT+K) ai la d apra ve se achou o css ou não, caso tenha achado tente troca-lo por outro do themeroller
estou com problema parecido, abri o código fonte da página gerada no firefox e percebi que as tags do primefaces não foram compiladas.
não mudei nada no web.xml, está na configuração padrão do JSF 2.0, pois li no User Guide do primefaces que não é necessária nenhuma modificação obrigatória na configuração.
eis o arquivo teste.xhtml:
<!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:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
</h:head>
<h:body>
<p:editor />
</h:body>
</html>
E eis a saída html no browser:
<!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:p="http://primefaces.prime.com.tr/ui"><head></head><body>
<p:editor></p:editor></body>
</html>
Não dá nenhum erro.
Antes que perguntem, adicionei o jar do primefaces no meu classpath.
O que pode ser??