Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1045

As a portlet developer, I would like to have Liferay IDE automate tasks related to CDI

    Details

      Description

      As documented in the Developing JSF Portlets with CDI wiki article, it is now possible to add CDI capabilities to Liferay Portlets. However, as the wiki article describes, there is quite a bit of configuration that must take place in the WEB-INF/web.xml descriptor and WEB-INF/portlet.xml descriptor in order to make it work. Additionally, it requires the Liferay CDI Portlet Bridge JAR dependency. To make matters more complicated, if using JBoss Weld as the CDI implementation on plain servlet containers like Tomcat and Jetty, then it is necessary to add a special <listener> element to WEB-INF/web.xml

      It would be great if Liferay IDE provided the ability to enable CDI during the "File->New Portlet" wizard. Perhaps this could be done with a "Liferay CDI Portlet" Eclipse Facet of some kind. When the facet is enabled, then all the manual configuration could take place automatically.

        Attachments

          Activity

            People

            Assignee:
            lr_ide LR IDE
            Reporter:
            neil.griffin Neil Griffin
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 48 weeks, 1 day ago

                Packages

                Version Package