Well I could use value: if i use something like:<br><br>value: anObject<br><br>   group isNil<br>         ifTrue: [ super value: anObject]<br>         ifFalse: [group hasCallback<br>                         ifTrue: [ self value: (group callbackValue: anObject) ]<br>
                         ifFalse: [ super value: anObject] ]<br><br>Gerhard<br><br><div class="gmail_quote">On Thu, Dec 31, 2009 at 4:13 PM, Lukas Renggli <span dir="ltr">&lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I find #valueCallback: strange because on all other fields (select<br>
list, textInput, textArea, checkbox, ...) this is called #value:. I<br>
realize that there is a conflict with the #value: attribute and I<br>
don&#39;t have a better solution ;-)<br>
<br>
Lukas<br>
<br>
2009/12/31 Gerhard Obermann &lt;<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; With my latest commits the OLD API is now working as before.<br>
&gt;<br>
&gt; New API is still using with: (I don&#39;t like it too) , what should be used<br>
&gt; instead.<br>
&gt; I would also like to know if anyone suggest a better selector than<br>
&gt; callbackValue:<br>
&gt; (value: should not be used as Julian already suggested)<br>
&gt;<br>
&gt; Example:<br>
&gt;     self<br>
&gt;         renderLabel: &#39;Radiogroup&#39;<br>
&gt;         input: [<br>
&gt;             html radioGroup<br>
&gt;                 callback: [:value | radio := value];<br>
&gt;                 with: [ :group |<br>
&gt;                     self elements do: [ :each |<br>
&gt;                         html label: [<br>
&gt;                             group radioButton<br>
&gt;                                 selected: radio = each;<br>
&gt;                                 callbackValue: each.<br>
&gt;                             html text: each ].<br>
&gt;                         html break ] ] ]<br>
&gt;         output: radio printString<br>
&gt;         on: html<br>
&gt;<br>
&gt; Cheers<br>
&gt; Gerhard<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Dec 31, 2009 at 12:31 PM, Philippe Marschall<br>
&gt; &lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; 2009/12/30 Lukas Renggli &lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; I think this is a good improvement, but we have to be careful.<br>
&gt;&gt; &gt; Behavior seems to be a bit distributed at the moment, for example the<br>
&gt;&gt; &gt; callback is on the group but the selection is still on the individual<br>
&gt;&gt; &gt; options?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I would prefer if you&#39;d continued in a separate branch before merging<br>
&gt;&gt; &gt; everything. Also I&#39;d like to hear the comments of Julian and Philippe,<br>
&gt;&gt; &gt; they didn&#39;t reply yet and might have other ideas. Also there is a<br>
&gt;&gt; &gt; certain risk with so deep changes that potentially break a lot of code<br>
&gt;&gt; &gt; so close to beta ...<br>
&gt;&gt;<br>
&gt;&gt; We have been close to beta for about a year ;-)<br>
&gt;&gt;<br>
&gt;&gt; Sorry to be kinda party pooper here:<br>
&gt;&gt; - I really don&#39;t like a #with: that gives you something else than an html<br>
&gt;&gt; canvas<br>
&gt;&gt; - I would prefer it if you could keep the old API for compatibility,<br>
&gt;&gt; even if deprecated.<br>
&gt;&gt; - I certainly prefer if there is a convenience API that makes simple<br>
&gt;&gt; things simple as long as complex things are still possible. I.e. are<br>
&gt;&gt; we sure we never need a callback on a radio button?<br>
&gt;&gt;<br>
&gt;&gt; The for the rest I agree with Lukas and Julian.<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt; Philippe<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; seaside-dev mailing list<br>
&gt;&gt; <a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
&gt;&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seaside-dev mailing list<br>
&gt; <a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div class="im">Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><br>
_______________________________________________<br>
</div><div><div></div><div class="h5">seaside-dev mailing list<br>
<a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
</div></div></blockquote></div><br>