Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      Description

      According to LPS-5935, the aui:panel and aui:tool taglibs work together to pull tool buttons on the panel bar. aui:panel works fine, but after adding an aui:tool tag inside the panel a stack trace is issued and the panel fails to render properly.

      Steps to reproduce:

      1. Create an AUI panel with a tool
        <aui:panel collapse="true" id="myPanel" label="My Panel">
        <aui:tool icon="refresh" id="refreshTool" handler="this.set('bodyContent', defaultText);" />
        <aui:tool icon="close" id="closeTool" handler="this.hide();" />
        
        Content here...
        </aui:panel>
        
      2. Deploy the portlet
      3. Add the portlet to a page
      4. Observe that while the content is present, the panel is not rendered and neither is the tool.
      5. Check the logs and observe a stack trace
        00:04:33,807 ERROR [http-bio-8080-exec-5][IncludeTag:253] Current URL / generates exception: com.liferay.taglib.aui.ToolTag cannot be cast to com.liferay.taglib.aui.ToolTag
        00:04:33,812 ERROR [http-bio-8080-exec-5][IncludeTag:154] java.lang.ClassCastException: com.liferay.taglib.aui.ToolTag cannot be cast to com.liferay.taglib.aui.ToolTag
        	at org.apache.jsp.html.taglib.aui.panel.end_jsp._jspService(end_jsp.java:576)
        	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
        	at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
        	at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
        	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:345)
        	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:245)
        	at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:86)
        	at com.liferay.taglib.aui.PanelTag.doEndTag(PanelTag.java:45)
        	at org.apache.jsp.view_jsp._jspx_meth_aui_005fpanel_005f0(view_jsp.java:185)
        	at org.apache.jsp.view_jsp._jspService(view_jsp.java:144)
        	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        
        
        

        Activity

        Hide
        Sharry Shi added a comment -

        PASSED Manual Testing following the steps in the description.

        Reproduced on:
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 06aaf9f0da712d6e7cf3d106e424f3d936f99a65.

        The aui:panel with an aui:tool tag inside got a stack trace while putting the portlet into use, and failed to render properly.

        Fixed on:
        Tomcat 7.0 + MySQL 5. Portal 6.1.x.EE GIT ID: f526762d4eea83798b49e5d5e93d1baa9d8e3a0e.
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: d4fb49869e92c661e54a7a9f98f76660d5e2e3c0.

        The aui:panel with an aui:tool tag inside deployed successfully and rendered properly.

        Show
        Sharry Shi added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 06aaf9f0da712d6e7cf3d106e424f3d936f99a65. The aui:panel with an aui:tool tag inside got a stack trace while putting the portlet into use, and failed to render properly. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x.EE GIT ID: f526762d4eea83798b49e5d5e93d1baa9d8e3a0e. Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: d4fb49869e92c661e54a7a9f98f76660d5e2e3c0. The aui:panel with an aui:tool tag inside deployed successfully and rendered properly.
        Hide
        Sharry Shi added a comment -

        Don't forget add

        <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>

        in first step.

        Show
        Sharry Shi added a comment - Don't forget add <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %> in first step.
        Hide
        Edward Gonzales added a comment -

        Hello everyone! We are in the process of removing component "Liferay TagLib" from LPS issues that contain more than one component. For issues that only have "Liferay TagLib", we plan to move to them to "Tools > Portal Taglibs". In the end, "Liferay TagLib" will be deprecated. Please make the necessary adjustments to your filters. Thanks!

        Show
        Edward Gonzales added a comment - Hello everyone! We are in the process of removing component "Liferay TagLib" from LPS issues that contain more than one component. For issues that only have "Liferay TagLib", we plan to move to them to "Tools > Portal Taglibs". In the end, "Liferay TagLib" will be deprecated. Please make the necessary adjustments to your filters. Thanks!

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 19 weeks, 6 days ago

              Development

                Subcomponents

                  Structure Helper Panel