With my latest commits the OLD API is now working as before.<br><br>New API is still using with: (I don't like it too) , what should be used instead.<br>I would also like to know if anyone suggest a better selector than callbackValue:<br>
(value: should not be used as Julian already suggested)<br><br>Example:<br> self<br> renderLabel: 'Radiogroup'<br> input: [<br> html radioGroup<br> callback: [:value | radio := value];<br>
with: [ :group |<br> self elements do: [ :each |<br> html label: [ <br> group radioButton<br> selected: radio = each;<br>
callbackValue: each.<br> html text: each ].<br> html break ] ] ]<br> output: radio printString<br> on: html<br><br>Cheers<br>
Gerhard<br><br><br><div class="gmail_quote">On Thu, Dec 31, 2009 at 12:31 PM, Philippe Marschall <span dir="ltr"><<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>></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;">
2009/12/30 Lukas Renggli <<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>>:<br>
<div class="im">> I think this is a good improvement, but we have to be careful.<br>
> Behavior seems to be a bit distributed at the moment, for example the<br>
> callback is on the group but the selection is still on the individual<br>
> options?<br>
><br>
> I would prefer if you'd continued in a separate branch before merging<br>
> everything. Also I'd like to hear the comments of Julian and Philippe,<br>
> they didn't reply yet and might have other ideas. Also there is a<br>
> certain risk with so deep changes that potentially break a lot of code<br>
> so close to beta ...<br>
<br>
</div>We have been close to beta for about a year ;-)<br>
<br>
Sorry to be kinda party pooper here:<br>
- I really don't like a #with: that gives you something else than an html canvas<br>
- I would prefer it if you could keep the old API for compatibility,<br>
even if deprecated.<br>
- I certainly prefer if there is a convenience API that makes simple<br>
things simple as long as complex things are still possible. I.e. are<br>
we sure we never need a callback on a radio button?<br>
<br>
The for the rest I agree with Lukas and Julian.<br>
<br>
Cheers<br>
<font color="#888888">Philippe<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
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>