Olá!!
fiz td como manda a regra..baixei a jar2.2.1, importei no xhtml mas simplismente ele não funciona...o xhtml reconhece os componemtes o autocomplete tbm.
estou copiando o codigo prontinho no site do primefaces mas quando vou executar..fica parecendo que estou usando html puro e os efeitos nao funcionam.
o que pode ser?
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>
<h:panelGrid columns="1" cellpadding="5">
<p:commandButton id="basic" value="Basic" onclick="dlg1.show();"
type="button" />
<p:commandButton value="Modal" onclick="dlg2.show();" type="button" />
<p:commandButton value="Effects" onclick="dlg3.show();" type="button" />
</h:panelGrid>
<p:dialog header="Basic Dialog" widgetVar="dlg1">
<h:outputText value="Resistance to PrimeFaces is futile!" />
</p:dialog>
<p:dialog header="Modal Dialog" widgetVar="dlg2" modal="true"
height="100">
<h:outputText value="This is a Modal Dialog." />
</p:dialog>
<p:dialog header="Effects" widgetVar="dlg3" showEffect="explode"
hideEffect="explode" height="100">
<h:outputText value="This dialog has nice effects." />
</p:dialog>
</body>
</html>
quando executo fica assim:
[img]http://img849.imageshack.us/img849/5006/semttulojtg.jpg[/img]
tentei fazer esse:
http://www.primefaces.org/showcase-labs/ui/dialog.jsf
assistir uma video aula para ver se eu estava fazendo algo errado mas o cara da video aula faz exatamente a mesma coisa que eu estou fazendo e funciona. :x