Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 67536 invoked from network); 19 Jul 2005 13:34:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jul 2005 13:34:22 -0000 Received: (qmail 59846 invoked by uid 500); 19 Jul 2005 13:34:14 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 59756 invoked by uid 500); 19 Jul 2005 13:34:13 -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 59729 invoked by uid 99); 19 Jul 2005 13:34:13 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2005 06:33:52 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 2E716E8 for ; Tue, 19 Jul 2005 15:33:49 +0200 (CEST) Message-ID: <955152869.1121780029188.JavaMail.jira@ajax.apache.org> Date: Tue, 19 Jul 2005 15:33:49 +0200 (CEST) From: "Mathias Broekelmann (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Closed: (MYFACES-140) HtmlPanelGrid should coerce column value to Number Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-140?page=all ] Mathias Broekelmann closed MYFACES-140: --------------------------------------- Resolution: Fixed patch for HtmlPanelGrid applied > HtmlPanelGrid should coerce column value to Number > -------------------------------------------------- > > Key: MYFACES-140 > URL: http://issues.apache.org/jira/browse/MYFACES-140 > Project: MyFaces > Type: Bug > Versions: 1.0.8 beta > Environment: Tomcat 5.0.28. JDK 1.5.0. Windows XP SP2 x86. > Reporter: David Gadbois > Priority: Minor > > In javax.faces.component.html.HtmlPanelGrid, we have: > public int getColumns() > { > if (_columns != null) return _columns.intValue(); > ValueBinding vb = getValueBinding("columns"); > Integer v = vb != null ? (Integer)vb.getValue(getFacesContext()) : null; > return v != null ? v.intValue() : DEFAULT_COLUMNS; > } > Per JSP 2.0 section 2.3.5.1 and 2.9, EL expressions can return a variety of of numeric types. In particular, the expression #{2 + 2} will return a Long. The code should be > public int getColumns() > { > if (_columns != null) return _columns.intValue(); > ValueBinding vb = getValueBinding("columns"); > Number v = vb != null ? (Number)vb.getValue(getFacesContext()) : null; > return v != null ? v.intValue() : DEFAULT_COLUMNS; > } -- 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