Details

      Description

      I'm trying to embed a FreeMarker portlet into a theme and I get:

      An app that can VIEW XXXX belongs here. Please contact the portal administrator or install such an app from the Liferay Marketplace.

      I was guessing that there is not a way to render a FreeMarker portlet with the runtime tag. Is there a workaround for this? All of our portlets are FreeMarker, and we don't want to rewrite them as JSP.

      A Liferay JSP portlet works.

      And it could be my configuration, but I've followed the docs and examples.

      UPDATE: Just built a small demo MVP portliest and have the same issue.

       

      <@liferay_portlet["runtime"]
          defaultPreferences=default_preferences
          portletProviderAction=portletProviderAction.VIEW
          portletProviderClassName="demomvp.portlet.DemoMVPViewPortletProvider"
      />

       

      UPADTE 2:

      Seems a simple fix here ... the 

          portletProviderClassName="demomvp.portlet.DemoMVPPortlet"
      

      Should be the actual portlet class name (not the Provider class name)

      AND you must have this in the portlet, it cannot be instanceable

       

      "com.liferay.portlet.instanceable=false",
      

       

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              barrie Barrie Selack
              Participants of an Issue:
              Recent user:
              Steven Gao (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 18 weeks, 5 days ago

                Packages

                Version Package
                Master