RE: Issues in PrimeFaces...

thumbnail
jay kumar, modified 5 Years ago. New Member Posts: 12 Join Date: 1/30/14 Recent Posts
Hello Liferay Community,

I am currently using Liferay 7.2 GA2. In which I have created some pages and deployed Primefaces Portlets.While navigating to different pages, following issues are occurring sometimes/randomly and disappear when I refresh the page.

1. Theme not loading sometimes properly, navigation/UI is disturbed.
2. Primefaces components are not working like calendar.
3.Previous page primefaces component are shown on new page
4.Moving to Preferences disturb UI.

I disabled the SPA is all Portlets by adding property in liferay-portlet.xml, still I am facing the issues.

I disabled this feature in portal-ext.properties and everything is working fine. But I want to enable it for better performance. 

​​​​​​​Please guide. Your help will be appreciated. Thank you.
thumbnail
Neil Griffin, modified 5 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts
Hi Jay,

IMO, Kyle Stiemann has written the authoritative, go-to guide for disabling SennaJS:
https://stackoverflow.com/questions/41288039/how-can-i-disable-sennajs-spa-in-liferay-7
(he asked the question, then answered his own question)
Senna.js is an amazing feature, and so I would agree with you that its best to only turn it off on a case-by-case basis.
Could you try adding data-senna-off="true" to the <a> tags in order to force only the pages containing PrimeFaces portlets to load with a full-page render, rather than a parital-page render via SennaJS?

You could try it first by creating a Web Content article that contains several tags like <a data-senna-off="true" href="... page URL ...">. If that works, then we can take the next step, which would be to figure out how to override the rendering of the Liferay navigation portlet so that it can automatically add the senna-data-off attribute where necessary.
Kind Regards,

Neil 
thumbnail
jay kumar, modified 5 Years ago. New Member Posts: 12 Join Date: 1/30/14 Recent Posts
Hi Neil,

Thanks for the response. 

We have Portlets of Primefaces on all pages. So adding it on every link is like disabling this feature.

​​​​​​​I have tried to disable this on Portlet level, but mentioned issues are still occurring.

So what's the way to fix these issues. I am doing something wrong, or others are facing these issues as well.