This works for
me. I create a new class Tester with those two
descriptions on the class side and tried in Seaside:
TesterTask>>go
| t |
t := Tester new.
[ self call: (t asComponent addValidatedForm; yourself) ] repeat
1. For the 'title' nothing is selected, because the default value is
not in the list of options.
2. For the 'nationality' Switzerland is selected.
How does your model code looks like? Is it already initialized with
something other than nil? Maybe you should give a little more context
In fact I use the tutorial package peek up from
http://mc.lukas-renggli.ch/tutorial/.
I have just saw the mistake with 'Mrs' what is strange is that I have
a new option 'Mrs' with out the dot in my list.
Correcting this, nothing change for Nationality but he work for Title.
(I use Magritte 1.0.7 and Seaside 2.6)
Sorry.
I have found it out.
I have been modifing the accessor for nationality to provide a default
Object.
+ I have make a stupide things:
MAPersonModel>>nationality
^ nationality isNil ifTrue: [ ^'' ] ifFalse: [ ^nationality ].
Those the problem could appear if I do sothing like this (suppose that
nationality is a String):
MAPersonModel>>nationality
^ nationality isNil ifTrue: [ nationality :='' ]
And why..
Thanks
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface
révolutionnaire.