Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 70333 invoked from network); 24 May 2007 06:23:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 06:23:43 -0000 Received: (qmail 5827 invoked by uid 500); 24 May 2007 06:23:43 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 5722 invoked by uid 500); 24 May 2007 06:23:42 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 5692 invoked by uid 99); 24 May 2007 06:23:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 23:23:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 23:23:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 61ECA71403F for ; Wed, 23 May 2007 23:23:16 -0700 (PDT) Message-ID: <16017911.1179987796399.JavaMail.jira@brutus> Date: Wed, 23 May 2007 23:23:16 -0700 (PDT) From: "Matthias Wronka (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (TOBAGO-410) attribute-tag causes ClassCastException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org attribute-tag causes ClassCastException --------------------------------------- Key: TOBAGO-410 URL: https://issues.apache.org/jira/browse/TOBAGO-410 Project: MyFaces Tobago Issue Type: Bug Components: Core Reporter: Matthias Wronka Fix For: 1.0.11, 1.0.12 We use the tc:attribute-Tag to assign styles to components such as ... or using Java Code: ivPanel = (UIPanel) ComponentUtil.createComponent(facesContext, UIPanel.COMPONENT_TYPE, "Panel"); Map lvAttr = ivPanel.getAttributes(); lvAttr.put("styleClass", "tobago-panel-default my-style"); In the current snapshots this causes a ClassCastException: java.lang.ClassCastException at org.apache.myfaces.tobago.renderkit.html.StyleClasses.ensureStyleClasses(StyleClasses.java:64) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.createCssClass(HtmlRendererUtil.java:115) at org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.prepareRender(HtmlRendererUtil.java:90) at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.prepareRender(DefaultLayoutRenderer.java:40) at org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:73) at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:364) at org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:71) at org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:277) at org.apache.myfaces.tobago.component.UIPanelBase.encodeChildren(UIPanelBase.java:43) at org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:77) at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.encodeChildrenOfComponent(DefaultLayoutRenderer.java:47) at org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:71) at org.apache.myfaces.tobago.component.UIPanelBase.encodeChildren(UIPanelBase.java:43) at org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:77) As this feature worked fine with version 1.0.10 we would appreciate a transition period, in which the styles are still assigned but a warning is logged. Currently our applications cannot use these snapshots. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.