Hi list, I have a component with a simple form. The form have some radio
buttons and the submit button. First sometimes after clicking over a
radio and submiting the form the variable is still in nil and second
when I ask if the variable is nil and call other component, the
component never shows. This is the code for the buttons
addRadioButton: each group: group into: html
| javascript |
javascript := self disableButtonScript. "Disable submit button
until some radio is clicked"
html
label:
[(html radioButton)
group: group;
onClick: javascript;
selected: self selectedAnswer = each;
callback: [self selectedAnswer: each].
html text: each].
and this is for the submit
acceptAction
| answer |
answer := self selectedAnswer.
answer
ifNil: [self errorHandler]
ifNotNil:
[self selectedAnswers add: answer.
super acceptAction]
any ideas? the framework is 2.8 and run over VW 7.6.
Thanks!
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside