RE: UI issues with SPA enabled and JSF portlet

Chandrashekar NM, modified 7 Years ago. New Member Posts: 24 Join Date: 4/30/15 Recent Posts

Hello All,

I am using Liferay 7.0 and I have a use case where I am using JSF portlet for displaying the Folder structure of Documents and Media in the form of tree hierarchy.  In a 2 column layout(30/70), on the left side I have the JSF portlet displaying the tree structure and on the right side I have Document and Media portlet.

If I click on the page link from Left navigation panel, then the JSF portlet does not display the Tree icons and instead it displays in the form of normal HTML bullet icons[screenshot-1]

If I refresh(F5) or reload the page, then the Icons are displayed as expected [screenshot-2]

I have tried disabling the SPA in the JSF portlet, but that also did not work.

<single-page-application>false</single-page-application>

Am I missing something here? Please let me know how I can resolve the issue- I want the Tree menu icons displayed when I click on any of the page links itself.

Also note that when I disable SPA globally in Liferay, this issue does not seems to appear. But I want to keep the SPA enabled  globally to have the benefits provided by it.

Are there any other ways of resolving the issue.

Thanks & Regards,

Chandra

thumbnail
Kyle Joseph Stiemann, modified 7 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

Hi Chandrashekar,
Which version of Liferay Portal 7.0 are you using? If you are using CE, you need to use Liferay Portal 7.0 GA7 for SennaJS/SPA to work correctly with Liferay Faces. Can you attach the simplest portlet that can reproduce this error so I can take a look at it locally?

- Kyle

Chandrashekar NM, modified 7 Years ago. New Member Posts: 24 Join Date: 4/30/15 Recent Posts

Hi Kyle,

Thanks for your reply.

I am using liferay-dxp-digital-enterprise-7.0-ga1 patched with de-36.

Will get back to you with the simplest portlet and reproduction steps. Meanwhile if you have any inputs please do let me know.

Regards,

Chandra

thumbnail
Kyle Joseph Stiemann, modified 7 Years ago. Liferay Master Posts: 760 Join Date: 1/14/13 Recent Posts

If you are using Fix Pack 36, you are probably running into LPS-77775. Please update to Fix Pack 41+ for Liferay Faces to work with SennaJS/SPA.

- Kyle

Chandrashekar NM, modified 7 Years ago. New Member Posts: 24 Join Date: 4/30/15 Recent Posts

Thanks Kyle for the swift response :)

We will consider the option of upgrading the fix pack level.

Regards,

Chandra