That package throws even bigger errors with CRCError doesnt understand proceed or some such.<br><br>I think I have spotted your problem being that you use an anchor to call the PhoneAdder component and that doesn&#39;t perform the submit so the customer name change doesn&#39;t get updated before the whole thing gets rerendered. If you use a submitButton the submit DOES get performed and your model should get updated. Look at the Form notes in WAFormInputTag.<br>
<br>Warm regards<br>John<br><br><div class="gmail_quote">On Mon, May 25, 2009 at 6:37 PM, 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><br><div class="gmail_quote"><div class="im">On Mon, May 25, 2009 at 11:54 AM, John McKeon <span dir="ltr">&lt;<a href="mailto:p3anoman@gmail.com" target="_blank">p3anoman@gmail.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;">

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.</blockquote></div><div><br>Thanks John.  Using Pharo Web Image 09.04.6, and the Seaside that came
packaged up with that ( not sure how to check the version ). <br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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</blockquote></div><div><br>That&#39;s a good tip thanks.<br>
<br>

The control is a meant to be little more sophisticated and can actually
add a new phone number between two phone numbers, it adds a new phone
number under whichever row you click &quot;Add&quot; on. I don&#39;t have it coded
in, but if there are no phone numbers yet, then the report would be
simply be an &quot;Add Phone Number&quot; link. <br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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.</blockquote>

</div><div><br>I&#39;m glad to hear that&#39;s what it should do, now it&#39;s just a matter of
figuring out what strange thing I did to make it NOT do that. <br><br>I
cleaned up those class methods and there was a halt in there too that
shouldn&#39;t have been. Attaching the .mcz seemed to be giving me problems
this morning so I just put it here for download: <a href="http://www.joelturnbull.com/JLLT-EditorsTest-JLL.2.mcz" target="_blank">http://www.joelturnbull.com/JLLT-EditorsTest-JLL.2.mcz</a><br>
<br>It&#39;s just a test case with a method that creates a sample
customer...doesn&#39;t persist anything...it just demos the problem I&#39;m
having. <br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>Hope this helps<br>John<br><br><br><br><div class="gmail_quote"><div><div></div><div>On Mon, May 25, 2009 at 8:26 AM, Joel Turnbull <span dir="ltr">&lt;<a href="mailto:joel@ardishealth.com" target="_blank">joel@ardishealth.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
<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></div></div>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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><font color="#888888"><br><br clear="all"><br>-- <br><a href="http://jmck.seasidehosting.st" target="_blank">http://jmck.seasidehosting.st</a><br>
</font><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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></div><br>
<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>