Combination View Flat View Tree View
Threads [ Previous | Next ]
Gaurav Sharma
Liferay and Primefaces: Multiple Primefaces portlets on the same page cause
January 24, 2013 6:34 AM
Answer

Gaurav Sharma

Rank: Junior Member

Posts: 35

Join Date: November 1, 2012

Recent Posts

I asked a question on StackOverflow. Instead of repeating it, I'm linking to it. SO Link. I have not received an answer yet and have been trying to get it to work for the past few days now without any luck.

Can someone suggest what I might be doing wrong?
Neil Griffin
RE: Liferay and Primefaces: Multiple Primefaces portlets on the same page c
January 24, 2013 2:49 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1418

Join Date: July 26, 2005

Recent Posts

The StackOverflow issue indicated that jQuery is being loaded multiple times. When you get a chance, please look at the <head>...</head> section of the rendered HTML of your portal page and let me know if you see jquery.js in there more than once. This shouldn't be a problem with the latest versions of Liferay Faces. Thanks.
Gaurav Sharma
RE: Liferay and Primefaces: Multiple Primefaces portlets on the same page c
January 24, 2013 3:03 PM
Answer

Gaurav Sharma

Rank: Junior Member

Posts: 35

Join Date: November 1, 2012

Recent Posts

Neil, you are right. I just upgraded to the latest vesion (3.1.1-ga2) and jQuery is only loaded once. I'm still trying to debug the issue. I'm mainly having problems with the file upload component of PrimeFaces and the tab component.

Thanks.
Gaurav
Neil Griffin
RE: Liferay and Primefaces: Multiple Primefaces portlets on the same page c
January 24, 2013 3:12 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1418

Join Date: July 26, 2005

Recent Posts

Hi Gaurav,

The file upload problem is a known issue: FACES-1384

But we didn't know about the tab component. When you get a chance, could you create a new bug issue in the Liferay Issue Tracker for the FACES project?

Thanks,

Neil
Gaurav Sharma
RE: Liferay and Primefaces: Multiple Primefaces portlets on the same page c
January 25, 2013 7:34 AM
Answer

Gaurav Sharma

Rank: Junior Member

Posts: 35

Join Date: November 1, 2012

Recent Posts

It seems that the tab problem was because I was using dynamic="true" for the tabs. Using the simple tab view solved the problem.

But the file upload issue as you pointed out, is a known issue. What would be the best workaround in this case. I noticed that he bridge itself has a file upload implementation though I've not tried it out yet. Would that be the way to go?
Gaurav Sharma
RE: Liferay and Primefaces: Multiple Primefaces portlets on the same page c
January 25, 2013 7:44 AM
Answer

Gaurav Sharma

Rank: Junior Member

Posts: 35

Join Date: November 1, 2012

Recent Posts

Added an issue at FACES-1472