<!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"><itlists@schrievkrom.de></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
super initialize.
self class: self allClasses first.
b := 5.
renderChooserOn: html
b := 12.
html div class: 'chooser'; with: [
html form: [
html div: [
html select
selected: class;
list: self allClasses;
onChange: 'submit()';
callback: [ :value | self halt. self class: value ] ] ].
self allSelectors size > 1 ifTrue: [
html form: [
html div: [
html select
selected: selector;
list: self allSelectors;
onChange: 'submit()';
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>