Did you add the submitOnClick sends to the radioButton tags?<br><br><div class="gmail_quote">On Tue, Apr 27, 2010 at 9:17 PM, Andy Burnett <span dir="ltr">&lt;<a href="mailto:andy.burnett@knowinnovation.com">andy.burnett@knowinnovation.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">John McKeon wrote:<div><br></div><div>&lt;&lt;&lt;</div><div><div>Hey Andy</div><div>I have a radio group defined like this (using your code):</div>
<div><br></div><div>renderContentOn:html</div><div>| group |</div><div>html form:</div>
<div><span style="white-space:pre">        </span>[</div><div><span style="white-space:pre">        </span>html radioGroup [ :rg |</div><div><span style="white-space:pre">                </span>rg radioButton</div>
<div>                        submitOnClick;</div><div><span style="white-space:pre">                        </span>selected: self contact isMale;</div><div><span style="white-space:pre">                        </span>callback: [self halt];</div>
<div>                        with: [html text:&#39;male&#39;].</div><div>                rg radioButton...etc</div><div>]</div><div>Hope that helps</div><div>John</div></div><div>&gt;&gt;&gt;</div><div><br></div></div><div>
Thanks John, </div>
<div>That does fix part of the problem. Initially the radio buttons weren&#39;t actually in concert - the code in the Seaside book wasn&#39;t producing &#39;name=&quot;something&quot;&#39; code.  I wonder whether that code would ever work?</div>

<div><br></div><div>Anyway, unfortunately, the callbacks are still not working. It is very odd.  The form renders properly, it is just that the callbacks never fire.  The code below shows two version - radio button and select statement. The select version works perfectly.  I would be really interested to know how to go about debugging this.</div>

<div><br></div><div><div>renderContentOn:html</div><div class="im"><div><br></div><div>html form:</div><div><span style="white-space:pre">        </span>[</div><div><span style="white-space:pre">        </span>html radioGroup: [ :rg |</div>

<div><span style="white-space:pre">                </span>rg radioButton</div></div><div><span style="white-space:pre">                        </span>selected: self contact isMale;</div><div><span style="white-space:pre">                        </span>callback: [self contact beMale];</div>
<div class="im">
<div>                        with: [html text:&#39;male&#39;].</div><div><span style="white-space:pre">                </span>rg radioButton</div></div><div><span style="white-space:pre">                        </span>selected: self contact isFemale;</div>

<div><span style="white-space:pre">                        </span>callback: [self contact beFemale];</div><div>                        with: [html text:&#39;female&#39;].</div><div><br></div><div><span style="white-space:pre">        </span>].</div>

<div>html select</div><div><span style="white-space:pre">        </span>list: #(#Male #Female);</div><div><span style="white-space:pre">        </span>selected: self contact gender;</div><div>
<span style="white-space:pre">        </span>callback: [:value| (value=#Male) ifTrue:[self contact beMale] ifFalse:[self contact beFemale]].</div><div class="im"><div><span style="white-space:pre">                </span>html submitButton on: #save of:self.</div>

<div>]</div></div></div><div><br></div><div>Cheers</div><div>Andy</div><font color="#888888"><div><br></div>
</font><br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://john-mckeon.us/seaside">http://john-mckeon.us/seaside</a><br>