<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay DXP JSF-Portlet as OSGI Component (Portlet)?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111168572" />
  <subtitle>Liferay DXP JSF-Portlet as OSGI Component (Portlet)?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111168572</id>
  <updated>2026-04-04T08:58:38Z</updated>
  <dc:date>2026-04-04T08:58:38Z</dc:date>
  <entry>
    <title>RE: Liferay DXP JSF-Portlet as OSGI Component (Portlet)?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111179171" />
    <author>
      <name>Kyle Joseph Stiemann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111179171</id>
    <updated>2018-10-09T22:36:14Z</updated>
    <published>2018-10-09T22:36:14Z</published>
    <summary type="html">&lt;p&gt;Glad I could help! Let us know if you have any more questions. Thanks
  for using Liferay Faces!&lt;br /&gt;
  &lt;br /&gt; - Kyle&lt;/p&gt;</summary>
    <dc:creator>Kyle Joseph Stiemann</dc:creator>
    <dc:date>2018-10-09T22:36:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP JSF-Portlet as OSGI Component (Portlet)?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111176107" />
    <author>
      <name>Oleksandr Meshcheryakov</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111176107</id>
    <updated>2018-10-09T11:10:55Z</updated>
    <published>2018-10-09T11:10:55Z</published>
    <summary type="html">&lt;p&gt;Hi Kyle,&lt;/p&gt;
&lt;p&gt;thanks for yours quick response!&lt;a href="https://github.com/liferay/liferay-faces-portal/tree/3.0.1/demo/jsf-ds-applicant-portlet"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Oleksandr Meshcheryakov</dc:creator>
    <dc:date>2018-10-09T11:10:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP JSF-Portlet as OSGI Component (Portlet)?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111170984" />
    <author>
      <name>Kyle Joseph Stiemann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111170984</id>
    <updated>2018-10-08T20:10:15Z</updated>
    <published>2018-10-08T20:10:15Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Hi&amp;nbsp;Oleksandr,&lt;br&gt; Although &lt;a href="https://github.com/liferay/liferay-faces-portal/tree/3.0.1/demo/jsf-ds-applicant-portlet"&gt;it
    is possible to create an&amp;nbsp;OSGi WAB that contains a JSF Portlet&lt;/a&gt;,
  we strongly recommend that you continue to use JavaEE WARs for
  your&amp;nbsp;portlets. There are several pitfalls and issues that come with
  using OSGi to manage JSF portlets. If you are looking to obtain OSGi
  services in a JSF portlet, you can instead use Liferay’s static
  utilities or&amp;nbsp;a&amp;nbsp;&lt;code&gt;ServiceTracker&lt;/code&gt;. In the future, you’ll also
  be able to use CDI to &lt;code&gt;@Inject&lt;/code&gt; services.* If you are
  trying to use another OSGi feature in your portlet, please let us know
  what it is and we can look to see if it’s possible without using a
  Declarative Services portlet.&lt;/p&gt;
&lt;p&gt;*For more info, check out Ray Auge’s &lt;em&gt;OSGi CDI Integration
  Specification&lt;/em&gt; talk at &lt;a href="https://www.liferay.com/web/events-devcon/agenda"&gt;Devcon
  2018&lt;/a&gt; (or wait for the recorded video).&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Kyle Joseph Stiemann</dc:creator>
    <dc:date>2018-10-08T20:10:15Z</dc:date>
  </entry>
  <entry>
    <title>Liferay DXP JSF-Portlet as OSGI Component (Portlet)?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111168571" />
    <author>
      <name>Oleksandr Meshcheryakov</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111168571</id>
    <updated>2018-10-08T13:46:29Z</updated>
    <published>2018-10-08T13:46:29Z</published>
    <summary type="html">&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have made JSF-Portlet with command shell:&lt;/p&gt;
&lt;pre&gt;
&lt;span&gt;mvn archetype:generate \
  -DarchetypeGroupId=com.liferay.faces.archetype \
  -DarchetypeArtifactId=com.liferay.faces.archetype.primefaces.portlet \
  -DarchetypeVersion=5.0.5 \
  -DgroupId=com.mycompany \
  -DartifactId=com.mycompany.my.primefaces.portlet&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Result from &lt;strong&gt;mvn install&lt;/strong&gt; was one &lt;strong&gt;war
  &lt;/strong&gt;file - as is usual for non OSGI portlet.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Is there any possibility make  JSF-Portlet as &lt;strong&gt;OSGI
  Component&lt;/strong&gt; same as MVC-Portlet?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</summary>
    <dc:creator>Oleksandr Meshcheryakov</dc:creator>
    <dc:date>2018-10-08T13:46:29Z</dc:date>
  </entry>
</feed>
