<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <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>
  </body>
</html>