Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Display React-Portlet in Liferay Backend
Hey Liferay-Community and JS-Portlet-Enthusiasts,
I recently tried to display my sample React-Portlet in the Liferay Backend.
For this I created a normal panel-app (the classic way in Liferay IDE) and adjusted it to display my React Portlet.
Sadly it only takes the name of my React-Portlet and links to a blank page. (see Screenshot)
When switching the javax.portletname to a normal Liferay MVC Portlet (with Java) - the portlet is displayed correctly.
Is there a correct way to display a React-Portlet in the Liferay Backend?
Screenshot: https://imgur.com/a/FQV6fqh
Have a good one,
Fredi from Germany
I recently tried to display my sample React-Portlet in the Liferay Backend.
For this I created a normal panel-app (the classic way in Liferay IDE) and adjusted it to display my React Portlet.
Sadly it only takes the name of my React-Portlet and links to a blank page. (see Screenshot)
When switching the javax.portletname to a normal Liferay MVC Portlet (with Java) - the portlet is displayed correctly.
Is there a correct way to display a React-Portlet in the Liferay Backend?
Screenshot: https://imgur.com/a/FQV6fqh
Have a good one,
Fredi from Germany
Hi Fredi,
I am also quite interested into using react portlets, sadly there is not much documentation about this so I cant help you there.
I am facing the same issue with a blank page in liferay backend if I list my react Portlet in control panel.
cheers
I am also quite interested into using react portlets, sadly there is not much documentation about this so I cant help you there.
I am facing the same issue with a blank page in liferay backend if I list my react Portlet in control panel.
cheers
Hey, i figured out that I only missed this Portlet property:
"javax.portlet.init-param.portlet-title-based-navigation":true
after adding this the js portlet is displayed in liferay backend as a panel app
"javax.portlet.init-param.portlet-title-based-navigation":true
after adding this the js portlet is displayed in liferay backend as a panel app