Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 84827 invoked from network); 5 Mar 2007 00:45:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2007 00:45:12 -0000 Received: (qmail 20060 invoked by uid 500); 5 Mar 2007 00:45:20 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 19995 invoked by uid 500); 5 Mar 2007 00:45:20 -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 19984 invoked by uid 99); 5 Mar 2007 00:45:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 16:45:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Sun, 04 Mar 2007 16:45:11 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CEF4571432B for ; Sun, 4 Mar 2007 16:44:50 -0800 (PST) Message-ID: <12989146.1173055490845.JavaMail.jira@brutus> Date: Sun, 4 Mar 2007 16:44:50 -0800 (PST) From: "Thai Ha (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (MYFACES-1555) h:messages and h:message don't use style attribute when rendering MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org h:messages and h:message don't use style attribute when rendering ----------------------------------------------------------------- Key: MYFACES-1555 URL: https://issues.apache.org/jira/browse/MYFACES-1555 Project: MyFaces Core Issue Type: Bug Affects Versions: 1.1.5, 1.1.6-SNAPSHOT, 1.2.0-SNAPSHOT Reporter: Thai Ha Priority: Minor When I use the style attribute has no effect on generated html. If I change it to then it works correctly. I have looked at the code and here is the cause: File: HtmlMessagesRendererBase.java (org/apache/myfaces/shared/renderkit/html/HtmlMessagesRendererBase.java) Lines: 199-202 Code: if (style == null) { style = (String)attr.get(org.apache.myfaces.shared.renderkit.JSFAttr.STYLE_CLASS_ATTR); } I believe that the attribute to be used here must be JSFAttr.STYLE_ATTR (not JSFAttr.STYLE_CLASS_ATTR) This fix should apply to HtmlMessageRendererBase.java too because h:message has the same problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.