Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 54046 invoked from network); 15 Jun 2005 18:34:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2005 18:34:42 -0000 Received: (qmail 16732 invoked by uid 500); 15 Jun 2005 18:34:37 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 16669 invoked by uid 500); 15 Jun 2005 18:34:36 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 16653 invoked by uid 99); 15 Jun 2005 18:34:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from viefep17-int.chello.at (HELO viefep17-int.chello.at) (213.46.255.23) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 15 Jun 2005 11:34:34 -0700 Received: from [192.168.1.31] (really [62.178.239.20]) by viefep17-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050615183419.MUBQ19956.viefep17-int.chello.at@[192.168.1.31]> for ; Wed, 15 Jun 2005 20:34:19 +0200 Message-ID: <42B074A9.6090402@apache.org> Date: Wed, 15 Jun 2005 20:34:17 +0200 From: Reinhard Poetz User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: CForms: some renamings on the Widget interface References: <42ADA010.3050701@apache.org> In-Reply-To: <42ADA010.3050701@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: > Hi all, > > As part of the stabilization work on CForms, there are a couple of > changes I'd like to do on the naming-related methods of the Widget > interface. > > Today we have: > - getId() which returns the local name of widget. > - getRequestParameterName() which returns the combination of the parent > widgdet's requestParameterName with the local name. > > Working with advanced templates and Ajax stuff, I find these names > increasingly annoying and confusing: > - each widget produces an HTML element with an "id" attribute filled > with getRequestParameterName(), and not getId()! > - this getRequestParameterName is really tooooo long to type, especially > in templates where we have no IDE autocompletion. > > Ideally, I'd like to do the following renaming: > - getId() --> getName() > - getRequestParameterName() --> getId() > But since the meaning of getId() changes, this is likely to cause weird > things in existing code. > > So I propose the following: > - getId() --> getName() > - getRequestParameterName() --> getFullId() > - deprecate and remove later getId() and getRequestParameterName(). > > Once getId() will have been removed for some time, we'll be able to > reintroduce it as an equivalent to getFullId(). +1 In order to be consistent (and as already proposed from somebody else we change from to , right? -- Reinhard P�tz Independent Consultant, Trainer & (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc --------------------------------------------------------------------