I am using Prime Faces 2.2, but now i want to use Prime Faces 3. I downloaded the Prime faces3.1.1 jar and included it into my project. I am using Netbeans 6.9. Then i create a simple project and include the Prime Faces 3.1.1 jar and then tried the code
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<p:inputTextArea id="inputarea" rows="5" cols="30"/>
</h:body>
</html>
But it is giving me error undeclared component:( Do i need to do something more in order to use Prime Faces 3 in my project. Also i want to ask is Prime Faces 3 is compatible with Prime Faces 2.2? One of my project is using Prime Faces 2.2. I also want to use Prime Faces 3 in that too. How can i update from Prime faces 2.2 to Prime Faces 3. Just including the Prime Faces 3.1.1 jar is enough?
Thanks
1) You forgot to add the
xmlns:p="http://primefaces.org/ui" into yourhtmltagand if you already taglibs you can add the
xmlns:f="http://java.sun.com/jsf/coreandxmlns:ui="http://java.sun.com/jsf/faceletsas well (you might use it later on)2) NO , you can’t use primefaces 2 and 3 in the same project and you can’t just replace the jars , follow this Migration Guide to 3.0
for example , you can’t use the listeners of the components you used to in the 2.2 project , instead , use the
p:ajaxwith the proper eventsalso you should read in the User Guide about how to use the components you used to use in primefaces 2.2 project User Guide