Fórum

Editing custom assets - portlet must be instanceable=false?

thumbnail
Abre Chase, modificado 6 Anos atrás.

Editing custom assets - portlet must be instanceable=false?

New Member Postagens: 12 Data de Entrada: 07/02/17 Postagens Recentes
I am following the instructions here to create a custom asset with edit support.

https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/rendering-an-asset

The directions are pretty good and I had it mostly working with the exception of edit support. The edit icon was displayed, but the link opened an empty page. The URL to edit is similar to the example provided in the link above. It looks something like:


PortletURL portletURL = PortalUtil.getControlPanelPortletURL(liferayPortletRequest, group, BlogsPortletKeys.BLOGS, 0, 0, PortletRequest.RENDER_PHASE);


What I found was that this would not work if the target portlet was marked as instanceable=true.

And no level of debugging produced any error messages in the logs. It took me a lot of time to figure out what was happening here so I'm just posting this in case anyone else runs into the same problem.