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"><<a href="mailto:renggli@gmail.com">renggli@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;">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't have a better solution ;-)<br>
<br>
Lukas<br>
<br>
2009/12/31 Gerhard Obermann <<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>>:<br>
<div><div></div><div class="h5">> 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<br>
> instead.<br>
> I would also like to know if anyone suggest a better selector than<br>
> 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>
> On Thu, Dec 31, 2009 at 12:31 PM, Philippe Marschall<br>
> <<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>> wrote:<br>
>><br>
>> 2009/12/30 Lukas Renggli <<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>>:<br>
>> > 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>
>> 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<br>
>> 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>
>> Philippe<br>
>> _______________________________________________<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>
><br>
><br>
> _______________________________________________<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>
><br>
><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>