[Seaside] Default classes for form input tags?

Boris Popov boris at deepcovelabs.com
Wed Aug 9 20:39:02 UTC 2006

Good point, thanks. I walked into this as I was integrating a new round of
changes from our designer and had a bit of a head-scratcher when things were
out of whack. I guess I'll just ask him not to use any of the types as
selectors: text, submit, radio, password, image, hidden, file, checkbox,

Speaking of silly things like that, any chance we could get an FAQ (or just
Q&A) page over at seaside.st? If yes, I don't mind updating it with stuff as
I stumble upon the more interesting bits hoping to attract others to join
in. There are a few Seaside FAQ's out there, but they seem to be maintained
separately and honestly some of them are just a tad obsolete.



DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com


This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any

Thank you.

-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Avi Bryant
Sent: Wednesday, August 09, 2006 1:28 PM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: Re: [Seaside] Default classes for form input tags?

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...

Seaside mailing list
Seaside at lists.squeakfoundation.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3370 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20060809/2c96e167/smime.bin

More information about the Seaside mailing list