<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-15"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="Georgia">One thing to look out for is:<br>
      <br>
      WAExampleBrowser&gt;&gt;allClasses(b is shadowed)<br>
      <br>
      Cheers,<br>
      Bob<br>
    </font><br>
    On 11/25/10 3:45 PM, Marten Feldtmann wrote:
    <blockquote cite="mid:4CEECAED.1050703@schrievkrom.de" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-15">
      <span class="corners-top"></span>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.<br>
      <br>
      <code>initialize<br>
           super initialize.<br>
           self class: self allClasses first.<br>
           b := 5.</code><br>
      <br>
      <code>renderChooserOn: html<br>
           b := 12.<br>
           html div class: 'chooser'; with: [<br>
              html form: [<br>
                 html div: [<br>
                    html select<br>
                       selected: class;<br>
                       list: self allClasses;<br>
                       onChange: 'submit()';<br>
                       callback: [ :value | self halt. self class: value
        ] ] ].<br>
              self allSelectors size &gt; 1 ifTrue: [<br>
                 html form: [<br>
                    html div: [<br>
                       html select<br>
                          selected: selector;<br>
                          list: self allSelectors;<br>
                          onChange: 'submit()';<br>
                          callback: [ :value | self selector: value ] ]
        ] ] ]<br>
        <br>
        The question is: What is the value of instance variable "b" of
        the receiver at the location of "self halt".<br>
        <br>
        The answer is: 5 - but why !? what state of the instance do I
        see in the callback ?<br>
        <br>
      </code>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". <br>
      <br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>