Foren

Liferay 6.2 with Primefaces 5.1

thumbnail
William Gosse, geändert vor 9 Jahren.

Liferay 6.2 with Primefaces 5.1

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
Can someone explain what I need to do in order to update the Primefaces 3.5 version that comes with Liferay 6.2 to Primefaces 5.1.

Thanks
thumbnail
Neil Griffin, geändert vor 9 Jahren.

RE: Liferay 6.2 with Primefaces 5.1

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Bill,

If your PrimeFaces portlets were developed using the Liferay Plugins SDK, then you can simply change the version of PrimeFaces to 5.1 in the ivy.xml descriptor of each portlet WAR project. If it was developed with Maven, then you can change the version in the pom.xml descriptor. Also, the portlet WARs would need to be rebuilt and redeployed. Before re-deploying, I recommend shutting down the app server and deleting the old deployment. That will ensure that you don't get two copies of primefaces.jar in the deployment.

I also wanted to mention that we released a group of patches for Liferay Faces GA5, a few of which pertain to supporting PrimeFaces 5.x.

Kind Regards,

Neil
thumbnail
William Gosse, geändert vor 9 Jahren.

RE: Liferay 6.2 with Primefaces 5.1

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
Thanks Neil!
thumbnail
Neil Griffin, geändert vor 9 Jahren.

RE: Liferay 6.2 with Primefaces 5.1

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
It was my pleasure Bill. It is always good to hear from you, and thanks so much for being such a faithful member of the community all these years emoticon
thumbnail
William Gosse, geändert vor 9 Jahren.

RE: Liferay 6.2 with Primefaces 5.1

Liferay Master Beiträge: 533 Beitrittsdatum: 04.07.10 Neueste Beiträge
I was actually out of Liferay development all last year, but now I'm back and happy to be!
Mihai Ocneanu, geändert vor 8 Jahren.

RE: Liferay 6.2 with Primefaces 5.1

New Member Beitrag: 1 Beitrittsdatum: 31.07.15 Neueste Beiträge
Neil Griffin:

If your PrimeFaces portlets were developed using the Liferay Plugins SDK, then you can simply change the version of PrimeFaces to 5.1 in the ivy.xml descriptor of each portlet WAR project.


Hi Neil,
I'm trying to achieve the same thing as the OP.

If I go ahead and change the ivy.xml from
<dependency name="org.primefaces.primefaces" org="com.liferay" rev="3.5" />

into
<dependency name="org.primefaces.primefaces" org="com.liferay" rev="5.1" />

I get errors at build, as the library is not found:

[ivy:resolve] :::: WARNINGS
[ivy:resolve] 		module not found: com.liferay#org.primefaces.primefaces;5.1
[ivy:resolve] 	==== local-m2: tried
[ivy:resolve] 	  file://C:\Users\mihai/.m2/repository/com/liferay/org.primefaces.primefaces/5.1/org.primefaces.primefaces-5.1.pom
[ivy:resolve] 	  -- artifact com.liferay#org.primefaces.primefaces;5.1!org.primefaces.primefaces.jar:
[ivy:resolve] 	  file://C:\Users\mihai/.m2/repository/com/liferay/org.primefaces.primefaces/5.1/org.primefaces.primefaces-5.1.jar
[ivy:resolve] 	==== liferay-public: tried
[ivy:resolve] 	  http://cdn.repository.liferay.com/nexus/content/groups/public/com/liferay/org.primefaces.primefaces/5.1/org.primefaces.primefaces-5.1.pom
[ivy:resolve] 	  -- artifact com.liferay#org.primefaces.primefaces;5.1!org.primefaces.primefaces.jar:
[ivy:resolve] 	  http://cdn.repository.liferay.com/nexus/content/groups/public/com/liferay/org.primefaces.primefaces/5.1/org.primefaces.primefaces-5.1.jar
[ivy:resolve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 		:: com.liferay#org.primefaces.primefaces;5.1: not found


What am I doing wrong here?...

Thanks,
Mihai
thumbnail
Andrea Pravato, geändert vor 8 Jahren.

RE: Liferay 6.2 with Primefaces 5.1

New Member Beiträge: 3 Beitrittsdatum: 01.05.13 Neueste Beiträge
Good information on how to use Ivy are here: http://ant.apache.org/ivy/history/latest-milestone/tutorial/start.html
Primefaces 5.2 can be found at this link in Maven repository: http://mvnrepository.com/artifact/org.primefaces/primefaces/5.2
In this case the needed code (Mihai already solved; we are colleagues) is this: <dependency name="primefaces" org="org.primefaces" rev="5.2" />