Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-30219

ResultRow.addJSP() does not support Application Adapters

    Details

      Description

      List View in Document Library (in SO 2.0 site) does not use the file_entry_action.jsp file from so-hook as expected. Stock JSP is always used.

      Cause of this is that when using following construct in JSP (the key is the method ResultRow.addJSP(), taken from /html/portlet/document_library/view_entries.jsp):

        List resultRows = searchContainer.getResultRows();
        ResultRow row = new ResultRow(curFolder, curFolder.getPrimaryKey(), i);
        ...
      
        row.addJSP("/html/portlet/document_library/file_entry_action.jsp");
      
        ...
        resultRows.add(row);
      

      the JSP file being actually used is always the stock JSP (or standard-hook-overridden one, whatever file is physically in the ROOT webapp under given path). But it will never be the one coming from Application Adapter applied to given group. In the case of SO 2.0, so-hook is used as an adapter for all SO sites. Hook so-hook contains override of /html/portlet/document_library/file_entry_action.jsp, but it's used only in Icon and Descriptiove view, as those are using another way to render the search container (<liferay-util:include />).

      All ResultRow.addJSP() methods should somehow support Application Adapters, the same way as <liferay-util:include /> does (I've looked into portal-service -> com.liferay.taglib.util.IncludeTag.getCustomPage()).

        Attachments

          Activity

            People

            Assignee:
            jonathan.lee Jonathan Lee
            Reporter:
            josef.sustacek Josef Šustáček
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              7 years, 40 weeks, 6 days ago

                Packages

                Version Package