Fórumok
JSF Portlet in Panel Page does not open (Lİferay6.2)
Tankut Koray, módosítva 9 év-val korábban
JSF Portlet in Panel Page does not open (Lİferay6.2)
New Member Bejegyzések: 7 Csatlakozás dátuma: 2014.12.18. Legújabb bejegyzések
Hi,
I have several JSF portlets and they are working when I add them to page. Then, I create a "panel page" and select these portlets from available portlets tree. Portlets appear in the panel page sidebar but when I click on their link, page refreshes and nothing happens. Also no error/warning messages in the console or log.
These portlets were working fine in such situations in Liferay 6.1. I updated them to work with 6.2 and as I said they are working when I add them to a page.
I opened several debug logs but found nothing relevant.
Any suggestions?
I have several JSF portlets and they are working when I add them to page. Then, I create a "panel page" and select these portlets from available portlets tree. Portlets appear in the panel page sidebar but when I click on their link, page refreshes and nothing happens. Also no error/warning messages in the console or log.
These portlets were working fine in such situations in Liferay 6.1. I updated them to work with 6.2 and as I said they are working when I add them to a page.
I opened several debug logs but found nothing relevant.
Any suggestions?
Juan Gonzalez, módosítva 9 év-val korábban
RE: JSF Portlet in Panel Page does not open (Lİferay6.2)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Please take a look at the migration guide:
https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/migrating-from-liferay-faces-3-1-to-life-liferay-portal-6-2-dev-guide-04--1
Probably you have to add <requires-namespaced-parameters>false</requires-namespaced-parameters> into liferay-portlet.xml
https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/migrating-from-liferay-faces-3-1-to-life-liferay-portal-6-2-dev-guide-04--1
Probably you have to add <requires-namespaced-parameters>false</requires-namespaced-parameters> into liferay-portlet.xml
Tankut Koray, módosítva 9 év-val korábban
RE: JSF Portlet in Panel Page does not open (Lİferay6.2)
New Member Bejegyzések: 7 Csatlakozás dátuma: 2014.12.18. Legújabb bejegyzések
Well that is already added.
Juan Gonzalez, módosítva 9 év-val korábban
RE: JSF Portlet in Panel Page does not open (Lİferay6.2)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Can you attach here your portlet?
Tankut Koray, módosítva 9 év-val korábban
RE: JSF Portlet in Panel Page does not open (Lİferay6.2)
New Member Bejegyzések: 7 Csatlakozás dátuma: 2014.12.18. Legújabb bejegyzések
That is a huge project with lots of dependencies. I will try to make a smaller example project. Or do you want a particular file?
Juan Gonzalez, módosítva 9 év-val korábban
RE: JSF Portlet in Panel Page does not open (Lİferay6.2)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Ok, please can you paste here liferay-portlet.xml and your portlet-ext.properties?
Tankut Koray, módosítva 9 év-val korábban
RE: JSF Portlet in Panel Page does not open (Lİferay6.2)
New Member Bejegyzések: 7 Csatlakozás dátuma: 2014.12.18. Legújabb bejegyzések
My liferay-portlet.xml is something like this. There are lots of portlets there but I removed most of them.
I am trying to open ResourceGroupManagement portlet in the panel page.
I dont have portlet-ext.properties file.
I am trying to open ResourceGroupManagement portlet in the panel page.
I dont have portlet-ext.properties file.
<liferay-portlet-app>
<portlet>
<portlet-name>ActivityMonitor-portlet</portlet-name>
<icon>/icon.png</icon>
<preferences-unique-per-layout>true</preferences-unique-per-layout>
<preferences-owned-by-group>false</preferences-owned-by-group>
<action-url-redirect>true</action-url-redirect>
<maximize-edit>true</maximize-edit>
<instanceable>true</instanceable>
<requires-namespaced-parameters>false</requires-namespaced-parameters>
<ajaxable>false</ajaxable>
<header-portlet-css>/css/main.css</header-portlet-css>
</portlet>
.....
<portlet>
<portlet-name>ResourceGroupManagement-Portlet</portlet-name>
<icon>/icon.png</icon>
<action-url-redirect>true</action-url-redirect>
<instanceable>false</instanceable>
<requires-namespaced-parameters>false</requires-namespaced-parameters>
<ajaxable>false</ajaxable>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/resources/js/tema.js</footer-portlet-javascript>
</portlet>
......
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>
</liferay-portlet-app>
Juan Gonzalez, módosítva 9 év-val korábban
RE: JSF Portlet in Panel Page does not open (Lİferay6.2)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
I can't see anything wrong there.
If you are using Tomcat, try to set this property in your portal-ext.properties and restart:
If it still doesn't get added, please try to build a small test portlet so we can reproduce.
Thanks!
If you are using Tomcat, try to set this property in your portal-ext.properties and restart:
layout.parallel.render.enable=false
If it still doesn't get added, please try to build a small test portlet so we can reproduce.
Thanks!
Tankut Koray, módosítva 9 év-val korábban
RE: JSF Portlet in Panel Page does not open (Lİferay6.2)
New Member Bejegyzések: 7 Csatlakozás dátuma: 2014.12.18. Legújabb bejegyzések
Hi again,
After long trials and failures, I got it working by removing
<action-url-redirect>true</action-url-redirect>
lines from liferay-portlet.xml
Tankut
After long trials and failures, I got it working by removing
<action-url-redirect>true</action-url-redirect>
lines from liferay-portlet.xml
Tankut
Juan Gonzalez, módosítva 9 év-val korábban
RE: JSF Portlet in Panel Page does not open (Lİferay6.2)
Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Hi Tankut,
thanks for confirming your solution.
As a general hint, it is usually a good practice to use the same configuration files as in Liferay Faces demos source.
thanks for confirming your solution.
As a general hint, it is usually a good practice to use the same configuration files as in Liferay Faces demos source.