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

Would like search-iterator tag to use PropsKeys and com.liferay.portal.kernel.util.PropsUtil instead of using Props Values to avoid errors in portlet

    Details

      Description

      Can an improvement be made to the <liferay-ui:search-iterator /> in relation to the PropsValues, and PropsKeys, and comliferay.portal.kernel.util.PropsUtil?

      Instead of using Props Values, can the search-iterator tag use PropsKeys and com.liferay.portal.kernel.util.PropsUtil? Please see the attached information for more understanding.

      We noticed in using the <liferay-ui:search-iterator /> in a portlet it gives the stack trace below if the tag library jsps are not modified.
      The problem is that PropsValues is in the portal-impl.jar and we don't think we should put that in the portlet. These are the jsp that are modified. Please see the attached files.

      /html/taglib/ui/search_paginator/page.jsp
      /html/taglib/ui/search_iterator/page.jsp
      /html/taglib/ui/page_iterator/start.jsp

      If one goes to the user search page in the control panel before going to the portlet it also works.

      [#|2012-10-22T12:28:04.059-0700|WARNING|oracle-glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=25;_ThreadName=Thread-2;|ApplicationDispatcher[/portal] PWC1231: Servlet.service() for servlet jsp threw exception
      java.lang.NoClassDefFoundError: com/liferay/portal/util/PropsValues
      at org.apache.jsp.html.taglib.ui.search_005fiterator.page_jsp._jspService(page_jsp.java from :717)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:68)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:534)
      at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:313)

        Attachments

        1. page.jsp
          1 kB
        2. page (search_paginator).jsp
          1 kB
        3. start.jsp
          10 kB

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              ira.chui Ira Chui
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package
                6.0.12 EE