Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2
-
Fix Version/s: 6.1.X EE, 6.2.0 CE M4
-
Component/s: UI, UI > JavaScript & CSS
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Similar Issues:
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:
- 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>
- Deploy the portlet
- Add the portlet to a page
- Observe that while the content is present, the panel is not rendered and neither is the tool.
- 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)

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.