<?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.0GA5]How to create a new ResultRow</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110324264" />
  <subtitle>[LF7.0GA5]How to create a new ResultRow</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110324264</id>
  <updated>2026-04-04T02:28:00Z</updated>
  <dc:date>2026-04-04T02:28:00Z</dc:date>
  <entry>
    <title>RE: [LF7.0GA5]How to create a new ResultRow</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110336028" />
    <author>
      <name>Diego Cantone</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110336028</id>
    <updated>2018-06-25T08:40:20Z</updated>
    <published>2018-06-25T08:40:20Z</published>
    <summary type="html">&lt;p&gt;Thanks Minhchau Dang, the problem was that i were using the old
  import com.liferay.portal.kernel.dao.search.ResultRow; that now it's
  an interface, with the import com.liferay.taglib.search.ResultRow; it works! &lt;/p&gt;</summary>
    <dc:creator>Diego Cantone</dc:creator>
    <dc:date>2018-06-25T08:40:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: [LF7.0GA5]How to create a new ResultRow</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110325780" />
    <author>
      <name>Minhchau Dang</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110325780</id>
    <updated>2018-06-22T18:50:08Z</updated>
    <published>2018-06-22T18:50:08Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;In Liferay 6.2, the class was &lt;a href="https://github.com/liferay/liferay-portal/blob/6.2.5-ga6/portal-service/src/com/liferay/portal/kernel/dao/search/ResultRow.java"&gt;com.liferay.portal.kernel.dao.search.ResultRow&lt;/a&gt;,
  living in &lt;code&gt;portal-service&lt;/code&gt;, which was present in the global
  class loader. In Liferay 7.0, that class was converted into an
  interface, and the implementation class was moved to &lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.5-ga6/util-taglib/src/com/liferay/taglib/search/ResultRow.java"&gt;com.liferay.taglib.search.ResultRow&lt;/a&gt;,
  living in &lt;code&gt;util-taglib&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;You can try adding a dependency on
  &lt;code&gt;com.liferay.portal.util.taglib&lt;/code&gt; and switch your import to
  the implementation rather than the interface to see if it works. You
  can see an example of Liferay doing so in &lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.5-ga6/modules/apps/collaboration/announcements/announcements-web/src/main/resources/META-INF/resources/view_manage_entries.jspf#L90"&gt;announcements-web&lt;/a&gt;,
  via an import in &lt;a href="https://github.com/liferay/liferay-portal/blob/7.0.5-ga6/modules/apps/collaboration/announcements/announcements-web/src/main/resources/META-INF/resources/init.jsp#L77"&gt;init.jsp&lt;/a&gt;,
  and there isn't anything special in the bnd.bnd or build.gradle.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Minhchau Dang</dc:creator>
    <dc:date>2018-06-22T18:50:08Z</dc:date>
  </entry>
  <entry>
    <title>[LF7.0GA5]How to create a new ResultRow</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110324263" />
    <author>
      <name>Diego Cantone</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110324263</id>
    <updated>2018-06-22T15:41:23Z</updated>
    <published>2018-06-22T15:41:23Z</published>
    <summary type="html">&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;in Liferay 6.2 i have some piece of code where has been used &lt;/p&gt;
&lt;pre&gt;
ResultRow row = new ResultRow(obj, n, i);&lt;/pre&gt;
&lt;p&gt;i noticed that in Liferay 7 i can't instantiate a ResultRow in this
  way, some one know if there is a similar alternative? A way to obtain
  the same result?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</summary>
    <dc:creator>Diego Cantone</dc:creator>
    <dc:date>2018-06-22T15:41:23Z</dc:date>
  </entry>
</feed>
