f2pro
Dezembro 6, 2010, 3:48pm
#1
pessoal to com um problema no momento de chamar os arquivos no PrimeFaces
estava seguindo este tutorial http://www.techbrainwave.com/?p=198 e chegou, no passo 5 eu copiei o exemplo a seguir
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://primefaces.prime.com.tr/ui" prefix="p" %>
<!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=UTF-8"/>
<title>Hello World</title>
<p:resources/>
</head>
<body>
<h:form id="helloWorldPageForm">
<p:panel id="primefacesPanel" header="Hello World"
footer="Footer"
style="position: relative; width: 500px; " >
<h:outputText value="Primefaces is great. My first application using Primefaces"/>
</p:panel>
</h:form>
</body>
</html>
</f:view>
e ele me retorna erro na linha 5 <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
com a seguinte mensagem
alguem sabe o porque disso e como resolver?
Cara… essas biblios rich e a4j são do RichFaces não do Prime… até onde eu sei, não há problema em usar as 2 mas vais precisar dos jars que contém o RichFaces e declarar alguns parâmetros no teu web.xml
procura sobre Richfaces e vê como configura o web.xml ou simplesmente tira as 2 linhas do richfaces da tua página…
Abs e bons estudos…
f2pro
Dezembro 6, 2010, 4:33pm
#3
Beleza… o problema acima resolvi
mas agora surgiu outro com o seguinte aviso
e o codigo é o abaixo
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://primefaces.prime.com.tr/ui" prefix="p" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<html xmlns:p="http://primefaces.prime.com.tr/ui" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Hello World</title>
</head>
<body>
<h:form id="helloWorldPageForm">
<p:panel id="primefacesPanel" header="Hello World"
footer="Footer"
style="position: relative; width: 500px; " >
<h:outputText value="Primefaces is great. My first application using Primefaces"/>
</p:panel>
</h:form>
</body>
</html>
</f:view>
barbon
Janeiro 20, 2011, 8:12am
#4
Da uma olhada no post disponível em:
http://www.patternizando.com.br/?p=103
Lá é apresentado as configurações de JSF2.0 com PrimeFaces 2.1