[Seaside] radioButton #value and group callback
nick.ager at gmail.com
Sun Apr 18 10:26:16 UTC 2010
I'm defining set of radio buttons in Seaside 3. My initial attempt was:
with: [ :group |
optionDescriptions doWithIndex: [:each :index|
This generated a set of radio buttons without the "value" attribute. I found
the cause in:
ifTrue: [ ^ super value: anObject ].
ifTrue: [ self selected: (group isSelected: anObject) ].
ifTrue: [ super value: (group callbackValue: anObject) ]
so the fix was to define a callback for radioGroup. As I'm using Ajax to
read the value from the radio buttons, I defined an empty callback. I think
I can see the rational for this line of code, but in my case it
Is the check for the callback really necessary? Could it be removed?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside