Return-Path: Delivered-To: apmail-incubator-click-dev-archive@minotaur.apache.org Received: (qmail 76165 invoked from network); 30 Dec 2009 13:33:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Dec 2009 13:33:56 -0000 Received: (qmail 69763 invoked by uid 500); 30 Dec 2009 13:33:56 -0000 Delivered-To: apmail-incubator-click-dev-archive@incubator.apache.org Received: (qmail 69719 invoked by uid 500); 30 Dec 2009 13:33:56 -0000 Mailing-List: contact click-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@incubator.apache.org Delivered-To: mailing list click-dev@incubator.apache.org Received: (qmail 69711 invoked by uid 99); 30 Dec 2009 13:33:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Dec 2009 13:33:56 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Dec 2009 13:33:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 645E4234C045 for ; Wed, 30 Dec 2009 05:33:29 -0800 (PST) Message-ID: <2101189260.1262180009396.JavaMail.jira@brutus.apache.org> Date: Wed, 30 Dec 2009 13:33:29 +0000 (UTC) From: "WarnerJan Veldhuis (JIRA)" To: click-dev@incubator.apache.org Subject: [jira] Created: (CLK-601) TextField sets size when not appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 TextField sets size when not appropriate ---------------------------------------- Key: CLK-601 URL: https://issues.apache.org/jira/browse/CLK-601 Project: Click Issue Type: Improvement Components: core Affects Versions: 2.1.0 RC1 Reporter: WarnerJan Veldhuis Priority: Trivial In the TextField class, the size attribute is *always* rendered regardless of the value of size. Since the size-attribute should be optional for the input-tag, it should be conditional, just as it is the case with maxLength and tabIndex. This would also mean that the default of 20 should be dropped. current code: buffer.appendAttribute("size", getSize()); proposed code: if ( getSize() > 0 ) { buffer.appendAttribute("size", getSize()); } Since the HTML-spec says size is implied, it should only be added if there is any size. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.