<?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>Using Service Trackers on a JSF portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121376679" />
  <subtitle>Using Service Trackers on a JSF portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121376679</id>
  <updated>2026-04-07T03:31:40Z</updated>
  <dc:date>2026-04-07T03:31:40Z</dc:date>
  <entry>
    <title>Using Service Trackers on a JSF portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121376678" />
    <author>
      <name>txapeldot .</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121376678</id>
    <updated>2022-03-10T15:51:57Z</updated>
    <published>2022-03-10T15:51:56Z</published>
    <summary type="html">&lt;p&gt;From a non-bean class lying on a JSF portlet, I'm trying to invoke a
  service defined in a Service Builder-created module. What I've read on
  the official documentation (Liferay 7.2) is that this task can be
  accomplished by using Service Trackers.&lt;/p&gt;
&lt;p&gt;The thing is that on a Liferay 7.4 Service Builder generated module,
  the '_serviceTracker' property has not been created within the
  [Foo]LocalServiceUtil service class, once the 'build service' gradle
  task has finished. As a consecuence, when from a non-bean class, which
  defines a [Foo]LocalServiceTracker class, lying on a JSF portlet, I
  call the method '.getService()', it is always returning a 'null' value.&lt;/p&gt;
&lt;p&gt;All I've read about invoking Service Builder based services is
  intended for the Liferay 7.2 release, but I'm developing with Liferay
  7.4. My doubt is whether the info described on Liferay 7.2 docs is
  valid for Liferay 7.4 or, I'm just doing the things the wrong way.&lt;/p&gt;
&lt;p&gt;I'd really appreciate some clarification.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</summary>
    <dc:creator>txapeldot .</dc:creator>
    <dc:date>2022-03-10T15:51:56Z</dc:date>
  </entry>
</feed>
