jsf 2 - PrimeFaces tags not recognised -
i new jsf , primefaces , have created project jsf2.0, glassfish v3.0 , jdk 6.0.now want use primefaces tags instead of jsf tags. have downloaded primefaces-3.5.jar , added web-inf/lib folder , recognized *.xhtml pages.
but when try run application not recognizes primefaces tags. example: if insert:
<p:inputtext id="username" validator="#{regbean.username}" required="true" requiredmessage="please enter username"/>
instead of:
<h:inputtext id="username" value="#{regbean.username}" required="true" requiredmessage="please enter username!"/>
it not show input box in web application. need include configuration details in web.xml file? please suggest!!
try like
<?xml version="1.0" encoding="utf-8"?> <!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:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <h:head> </h:head> <h:body> <h:form> <p:editor></p:editor> </h:form> </h:body> </html>
also make sure have primefaces.jar in path.
Comments
Post a Comment