I'm trying out liferay 7.1 b3 and I'd like to embed a portlet in a page fragment. I've taken a look at the most recent documentation available here, which says that in order to embed a portlet widget in a page fragment, all I have to do is add the
"com.liferay.fragment.entry.processor.portlet.alias=my-custom-portlet"
property in the @Component
properties, where in this case, the alias (my-custom-portlet
) is the alias I will use to include the portlet in the fragment.
Then in my custom page fragment I have to include the lfr-widget
tag with the suffix defined by the com.liferay.fragment.entry.processor.portlet.alias
propertiy. So in my case, it should be<lfr-widget-my-custom-portlet />
.
The trouble is that I can't even create the page fragment with the above. I get the following error:
There is no widget available for alias my-custom-portlet.
If, on the other hand, I try it with a liferay portlet (such as <lfr-widget-nav/>
in their own example) the nav portlet is correctly displayed. Has anyone else tried? Any feedback at all would be appreciated.