<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="Georgia">That does solve the problem, although I don't
      know what it might break.</font><br>
    <br>
    On 11/25/10 3:58 PM, radoslav hodnicak wrote:
    <blockquote
      cite="mid:AANLkTim7CE-ZvGC3tJ_1KMwZF2_BKCaMPMf02se6z2+d@mail.gmail.com"
      type="cite">
      <pre wrap="">Backtracking? Try to delete the #states method from the class to see
if it makes any difference.

rado

On Thu, Nov 25, 2010 at 9:45 PM, Marten Feldtmann
<a class="moz-txt-link-rfc2396E" href="mailto:itlists@schrievkrom.de">&lt;itlists@schrievkrom.de&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I have problems in understanding this code. It is from the WAExampleBrowser.
I added an additional instance variable b to this class and changed the
following methods.

initialize
&nbsp; &nbsp;super initialize.
&nbsp; &nbsp;self class: self allClasses first.
&nbsp; &nbsp;b := 5.

renderChooserOn: html
&nbsp; &nbsp;b := 12.
&nbsp; &nbsp;html div class: 'chooser'; with: [
&nbsp; &nbsp;&nbsp; &nbsp;html form: [
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;html div: [
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;html select
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;selected: class;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;list: self allClasses;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;onChange: 'submit()';
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;callback: [ :value | self halt. self class: value ] ] ].
&nbsp; &nbsp;&nbsp; &nbsp;self allSelectors size &gt; 1 ifTrue: [
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;html form: [
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;html div: [
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;html select
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;selected: selector;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;list: self allSelectors;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;onChange: 'submit()';
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;callback: [ :value | self selector: value ] ] ] ] ]

The question is: What is the value of instance variable "b" of the receiver
at the location of "self halt".

The answer is: 5 - but why !? what state of the instance do I see in the
callback ?

I know that the Seaside book tells one: "Your rendering method is just for
painting the current state of your component, it shouldn't be concerned with
changing that state".



_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>


</pre>
      </blockquote>
      <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

</pre>
    </blockquote>
  </body>
</html>