Liferay 7 uses SennaJS as its Single Page Application engine in order to load and replace certain parts of the portal page during form submission and navigation. Occasionally this feature interferes with my use case, so how can I disable it?
相关问题
- Is it possible in Liferay to add custom Resource-A
- Display data from Custom Query(Joined tables) in l
- Error in calling CMIS Query if String contains sin
- same bean id on different xml file, will it merge?
- Liferay With Multiple Server Instances
相关文章
- How to create a Liferay 7 structure programmatical
- How to migrate Liferay portal from one windows mac
- How do I get Sites of which the user is a member i
- Liferay 7 not able to set the global session attri
- How to integrate Liferay DXP with Apache POI?
- Liferay concatenate and compress javascript
- Liferay Portlet: How to generate service.xml (serv
- Severe security constraints while tomcat 8 startup
If you want to disable the XHR GET navigation performed by SennaJS or its handling of form submissions, you can try one of the following:
If you want to disable SPA for only certain forms or links, you can add the
data-senna-off="true"
attribute to those<form>
or<a>
tags.If you want to disable SPA for only one portlet, you can add
<single-page-application>false</single-page-application>
to the<portlet>
section of yourliferay-portlet.xml
(see the DTD for the expected order ofliferay-portlet.xml
elements).If you want to disable SPA for only one OSGi module portlet, you can add
"com.liferay.portlet.single-page-application=false"
to your portlet metadata.If you want to disable SPA on a portal wide basis, you can add
javascript.single.page.application.enabled=false
to yourportal-ext.properties
file.