<?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>[LF7.4GA31] Portlet not showing in widget list when using @Reference</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121461155" />
  <subtitle>[LF7.4GA31] Portlet not showing in widget list when using @Reference</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121461155</id>
  <updated>2026-04-03T20:18:03Z</updated>
  <dc:date>2026-04-03T20:18:03Z</dc:date>
  <entry>
    <title>RE: [LF7.4GA31] Portlet not showing in widget list when using @Reference</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121461839" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121461839</id>
    <updated>2022-07-07T09:13:20Z</updated>
    <published>2022-07-07T09:13:19Z</published>
    <summary type="html">&lt;p&gt;This typically means that the referenced service is not available -
  e.g. you'd need to also deploy the service-builder generated API and
  implementation bundle, and they'll need to start without any problems
  (the bundle may be active, but the service might have a problem).&lt;/p&gt;
&lt;p&gt;If your widget appears in the list without the @Reference, the
  service won't be initialized, so you're likely running into
  NullpointerExceptions when you actually use your widget, whenever it
  tries to call the service.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2022-07-07T09:13:19Z</dc:date>
  </entry>
  <entry>
    <title>[LF7.4GA31] Portlet not showing in widget list when using @Reference</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121461154" />
    <author>
      <name>Tinfo Tinfo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121461154</id>
    <updated>2022-07-06T13:24:47Z</updated>
    <published>2022-07-06T13:24:45Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;we are starting to do some test on the Liferay 7.4 version, we
  noticed that portlet without any services works fine, instead portlet
  with services modules aren't working, the problem is that the portlet
  will not show up in widget list if we use @Reference(unbind =
  &amp;quot;-&amp;quot;) to retrieve the service, for example with this code &lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;private static CompetenzaLocalService _competenzaLocalService;

@Reference(unbind = &amp;quot;-&amp;quot;)
protected void setCompetenzaLocalService(CompetenzaLocalService competenzaLocalService) {
	_competenzaLocalService = competenzaLocalService;
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Portlet won't show, instead with this code:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;private static CompetenzaLocalService _competenzaLocalService;

protected void setCompetenzaLocalService(CompetenzaLocalService competenzaLocalService) {
	_competenzaLocalService = competenzaLocalService;
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;it will show up in the widget list.&lt;/p&gt;
&lt;p&gt;There aren't other errors, the portlet in both case correctly start &lt;/p&gt;
&lt;p&gt;2022-07-06 13:00:25.597 INFO  [pipe-start
  1560][BundleStartStopLogger:77] STARTED it.tinfo.competenze_1.0.0 [1560]&lt;/p&gt;
&lt;p&gt;in the app manager the status is active, also the portlet work fine
  in Liferay 7.3&lt;/p&gt;
&lt;p&gt;Which could be the problem?&lt;/p&gt;</summary>
    <dc:creator>Tinfo Tinfo</dc:creator>
    <dc:date>2022-07-06T13:24:45Z</dc:date>
  </entry>
</feed>
