Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed

      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)
        
        
        

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Subcomponents