[Seaside] Default classes for form input tags?

Avi Bryant avi.bryant at gmail.com
Wed Aug 9 20:27:33 UTC 2006

On Aug 9, 2006, at 1:24 PM, Boris Popov wrote:

> Why is it that form fields get their class initialized by default  
> to match
> their type in
> WAFormInputTag>>with: aBlock
>  self type isNil ifFalse: [
>   self attributes at: 'type' ifAbsentPut: [ self type ].
>   self class: self type ].
>  super with: aBlock.
> I find it very odd that Seaside would try to impose any classes  
> onto the
> developer, same applies to WAListTag>>with: and these are the only  
> two cases
> I could find.

I don't remember when that change was made, or what the specific  
reason for it was.  I can say, however, that it's a pretty useful  
thing to have, in that it lets you use selectors like input.text or  
input.password in your CSS...


More information about the Seaside mailing list