[Seaside] WACollectionTag>>isSelected:

Damien Cassou damien.cassou at laposte.net
Thu Feb 23 22:00:16 UTC 2006


here is the current #isSelected: code from WACollectionTag:

isSelected: anObject
  ^ self isMultiple
   ifTrue: [ selected includes: anObject ]
   ifFalse: [ selected = anObject ].

If the user did not have selected anything (nor the programmer have
choosen a default selection), this method will call #includes: on

You may want to verify selected is not nil before sending it #includes:.


Damien Cassou

More information about the Seaside mailing list