[ http://issues.apache.org/jira/browse/TOMAHAWK-187?page=comments#action_12371057 ]
Roland Schaal commented on TOMAHAWK-187: ---------------------------------------- Mike, thanks a lot for your support! The patch you have provided works perfectly with and without serverSideTabSwitch! Roland > ClassCastException using panelTabbedPane in nightly build > --------------------------------------------------------- > > Key: TOMAHAWK-187 > URL: http://issues.apache.org/jira/browse/TOMAHAWK-187 > Project: MyFaces Tomahawk > Type: Bug > Components: Tabbed Pane > Versions: 1.1.2-SNAPSHOT > Reporter: Roland Schaal > Assignee: Mike Kienenberger > Attachments: HtmlPanelTabbedPane.java, HtmlPanelTabbedPane.java.patch.txt > > Hello, > When using > serverSideTabSwitch="true" > I get the following ClassCastException: > java.lang.ClassCastException > at > org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane.isClientSide(HtmlPanelTabbedPane.java:142) > at > org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer.encodeEnd(HtmlTabbedPaneRenderer.java:92) > at > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536) > at > org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:442) > at > org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:419) > at > org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:75) > at > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536) > at > org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:442) > at > org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216) > ... > Looking at the code of HtmlPanelTabbedPane it seems to me that they try to > cast a String- into a Boolean-object, which causes the exception: > public boolean isClientSide(){ > Boolean serverSideTabSwitch = > (Boolean)getAttributes().get("serverSideTabSwitch"); > return serverSideTabSwitch != null ? !serverSideTabSwitch.booleanValue() : > true; > } > Regards, > Roland Schaal -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
