Tagged: Primefaces JSF Upgrade
- This topic has 3 replies, 2 voices, and was last updated 3 years, 12 months ago by sadaffgh.
-
AuthorPosts
-
khohlwlsMemberApologies if this has been answered and I could not find it –
I just downloaded a trial version of MyEclipse for Spring and I’m trying to use it to scaffold entities and a JSF UI by reverse engineering an existing DB table. It works, sort of. I need to alter the generated JSF code to do filtering, sorting, and lazy loading. These are all available in the latest version of PrimeFaces. I tried simply upgrading the version used and the namespace references but it appears my changes are being ignored and there are lots of errors.
Is it possible to manually upgrade the version of PrimeFaces used? If so, what is the procedure to do it successfully?
Thank you.
support-pradeepMemberkhohlwls,
I have tried creating an JSF/Primefaces and Spring Scaffolding application following this tutorial:
http://www.myeclipseide.com/documentation/quickstarts/ME4STutorialScaffoldingJSF/scaffoldingjsfarticle.htmlCan you please follow these steps to upgrade to latest version of Primefaces :
1) Can you please download primefaces-3.5.RC1.jar(latest version of Primefaces) from here : http://primefaces.org/downloads.html
2) Go to Project buildpath > libraries tab. Remove Primeface 2.1 jar and add primefaces-3.5.RC1.jar by clicking on “Add External JARs..” button.
3) Open web.xml file and remove the Primefaces ResourceServlet altogether from web.xml because ResourceServlet was maintained as part of PrimeFaces 2.x. The Primefaces 3.x does not require any entries in web.xml. Also, don’t forget to remove the Primefaces Resource servlet mapping from web.xml.
4) Change the Namespace of Primefaces in all xhtml files to xmlns:p=”http://primefaces.org/ui”
5) To check if Primefaces is upgraded, Open viewCustomers.xhtml file and add <p:clock></p:clock> after <h:form> tag.(<p:clock> is the New component added in Primefaces 3.5)
6) Run the application and check if you can see the clock when viewing a customer.If you can still see any errors, can you please attach the whole error that you are seeing to help us investigate further.
Let us know how it works for you.
khohlwlsMemberThat worked! Thank you very much. Step 3 is what I was missing.
support-pradeepMemberkhohlwls,
Glad that you got it working.
Let us know if you see any issues. -
AuthorPosts