cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: CForms: some renamings on the Widget interface
Date Tue, 14 Jun 2005 08:48:30 GMT
Jason Johnston wrote:

>On Mon, 2005-06-13 at 23:31 +0200, Sylvain Wallez wrote:
>  
>
>>Jason Johnston wrote:
>>
>>>The HTML element is also given a "name" attribute with the same value,
>>>which is what is actually used as the parameter name when the form is
>>>submitted.  As far as the HTML form is concerned (don't know about your
>>>Ajax work) the id attribute on the HTML element is meaningless.
>>>      
>>>
>>Right, but CForms produces more @id's than @name's :-)
>>    
>>
>
>At least in the HTML styling... no telling what future stylings will produce.  ;-)
>  
>

Hmmm... neither XForms <input> nor XUL's <textbox> have an @name :-)

>>>So now we use getName() to get the value of the id attribute?  This
>>>seems to me like you're causing a greater asymmetry in an attempt to
>>>solve a lesser one.
>>>      
>>>
>>With the renaming of the "id" attribute to "name", we achieve an 
>>increased global consistency.
>>    
>>
>
>Ah, OK.  The (important!) missing piece in your original message was
>that this is a global change to methods *and* attributes, to achieve
>more "correct" and convenient semantics.  It sounded before like you
>were just trying to match the methods to the styling, which rubbed me
>wrong. :-)
>  
>

Yeah, I should have explained that second part also. Sorry for that.

>Now that I understand your motives correctly, it makes sense.  I think
>your deprecation strategy is reasonable.
>  
>

Great!

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://apache.org/~sylvain            http://anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


Mime
View raw message