<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
<br>
<br>
Avi Bryant wrote:<br>
<blockquote type="cite"
 cite="midPine.LNX.4.43L0.0310051058460.18542-100000@cable.beta4.com">
  <pre wrap="">On Sun, 5 Oct 2003, Markus Fritsche wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">A minimal monticello package is at
<a class="moz-txt-link-freetext" href="http://reauktion.de/archer/DIA-mfrit.2.mcz">http://reauktion.de/archer/DIA-mfrit.2.mcz</a> For the "Lieferant: " button
to work you'll have to define an address first. It's partly german, I
hope this isn't a problem.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Ok, I see your problem.

In DIAArticleApplication&gt;&gt;renderContentOn:, you have

  html render: (DIAArticleEditor new article: DIAArticle new))

This means that every time you render, you're creating a new article
editor.

So the component doing the #call: is the ArticleEditor from the last time
you rendered - which doesn't affect the new one you create the next time
you render.

Subcomponents need to be created once, at initialization time, not for
each render - at least subcomponents that you expect #call: to work for.

Does that make sense?

_______________________________________________
  </pre>
</blockquote>
<br>
Markus,<br>
<br>
A long time ago, I made that same mistake. &nbsp;Interestingly enough, there was
an earlier version of Seaside where that "mistake" actually worked out OK.
&nbsp;The point is, I don't think the design of Seaside ever intended such code
to work as you were expecting (and as I was once expecting), even if there
was once a Seaside version where it seemed to work OK. &nbsp;For me, it was when
I upgraded to a newer Seaside version that things seemed to have suddenly
become broken, and I naturally thought the newer Seaside version was broken.
&nbsp;I didn't realize (at first) that it was actually my own code that was broken
(i.e., written in a fashion that Seaside wasn't designed for). &nbsp;When you
initially wrote your code, you were probably using one of those earlier versions.<br>
<br>
Nevin<br>
<br>
<pre class="moz-signature" cols="$mailwrapcol">-- 
Nevin Pratt
Bountiful Baby
<a class="moz-txt-link-freetext" href="http://www.bountifulbaby.com">http://www.bountifulbaby.com</a>
(801) 992-3137
</pre>
<br>
</body>
</html>