Joel,<br>You probably should give some details as to which Smalltalk, which version of Seaside etc. I could not get the mcz package to load so I am going by what I can glean from viewing the changes in your package. There are a bunch of rendering methods that got added to the class side
somehow that I think is the cause of the failure to load. Try removing
them and repackaging your code.<br><br>Usual usage for a report of items like the phone report is to put an Add button somewhere other than on the row of the existing item (other wise how would one be able to add the first phonenumber). The Add button should &quot;call&quot; the phone editor: self call: PhoneEditor. The phone editor would return a Phone object instead of true or false so the call then looks like <br>
           p := self call: phoneEditor. <br>          p isNil ifFalse: [ phones add: p ].<br><br>And your phone editor should  answer: phone instead of true/false<br><br>The PhoneReport is a child of the Customer editor, so calling the PhoneEditor in this manner should only replace the Phone report not the Customer component. This way the Customer data does not &quot;disappear&quot;. Why it is not doing that I cannot tell since I cannot run the code.<br>
<br>Hope this helps<br>John<br><br><br><br><div class="gmail_quote">On Mon, May 25, 2009 at 8:26 AM, Joel Turnbull <span dir="ltr">&lt;<a href="mailto:joel@ardishealth.com">joel@ardishealth.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Sorry I seem to keep losing my message text in the email :P<br><br>---------------<br><br>I&#39;ve boiled my question down to this...<br><br>What&#39;s
the best way to have an editor component retain the values of it&#39;s
input fields, if those values have been changed, and nested components
are calling editors of their own?<br>
<br>An example scenario:<br><br>I have a customer editor component that
has a name input, and a nested phone number report component. Each
report row has a phone number, type, and &quot;Add&quot; link. When it is clicked
the report component calls and is replaced by a phone number editor
component. This is happening within the customer editor.<br>
<br>The problem is that when the phone number editor component is
called, the value of the name input field in the customer editor
reverts to it&#39;s original value if it had been changed. If it had a
value of &quot;Lenny&quot; when the form renders, and the user changes the name
to &quot;Carl&quot;. It changes back to &quot;Lenny&quot; when the user goes to add a phone
number.<br>
<br>I get that when the anchor is clicked the form refreshes. So is
ajax the answer? Or can I take a different approach with components?<br><br>I have an .mcz of my test case that I tried to attach but I think it was messing up my post.<br><br>
Thanks<br><font color="#888888"><font color="#888888">Joel
</font><br>
</font><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://jmck.seasidehosting.st">http://jmck.seasidehosting.st</a><br>