[Seaside] I can't get callbacks to fire from radio buttons

keith keith_hodges at yahoo.co.uk
Wed Apr 28 15:47:30 UTC 2010

I think that this is a known limitation with checkboxes etc, you need  
to submit the whole form, or use an independent onClick handler.

Have a look at the class comments, I seem to remember this is  
mentioned somewhere.


> Maybe onClick: instead of callback: helps?
> Hello
> I am working through the seaside book, and everything has been fine,  
> until I tried to replace my select item with a radio group. The form  
> renders correctly, but never fires the callbacks.  Could someone  
> poke me with a clue stick?  By the way, the self halts are in there  
> because when I put the halt commands in the beMale beFemale methods,  
> they never fired either. So I was working my way back up the chain.
> The strange thing is that the other text input boxes (removed in  
> this snippet) updated the model correctly.
> renderContentOn:html
> | group |
> html form:
> [
> group := html radioGroup.
> html text:'male'.
> html radioButton
> group: group;
> selected: self contact isMale;
> callback: [self halt].
> html text: 'female'.
> html radioButton
> group: group;
> selected: self contact isFemale;
> callback: [self halt].
> html submitButton on: #save of:self.
> ]
> Cheers
> Andy
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100428/fe0c8408/attachment-0001.htm

More information about the seaside mailing list