<br><br><div class="gmail_quote">On Fri, Oct 22, 2010 at 8:31 PM, Elliot Finley <span dir="ltr"><<a href="mailto:efinley.lists@gmail.com">efinley.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
This means the editor needs to operate on a copy of the object.<br></blockquote><div><br></div><div>Yes, and the only place you can put code to deal with the copy is in the button callbacks. In this configuration though, answer: is of no use. You would need to do something else... </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 6:32 PM, John McKeon <span dir="ltr"><<a href="mailto:p3anoman@gmail.com" target="_blank">p3anoman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Elliot,<div>The editor is a form whose fields are bound to the object it is editing, and the submit button (whether the Cancel or Save button) will perform the form's input field callbacks first (see Section 10.1).</div>
<div>Hope this helps</div><div>John</div><div><br><div class="gmail_quote"><div><div></div><div>On Thu, Oct 21, 2010 at 6:49 PM, Elliot Finley <span dir="ltr"><<a href="mailto:efinley.lists@gmail.com" target="_blank">efinley.lists@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>Hello,<div><br></div><div>I've been going through the Seaside online book and so far everything has been intuitive and straightforward. At the very end of section 12.2 (Example: Embedding an Editor) there is a note that says:</div>
<div><br></div><div><span style="font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:14px;color:rgb(34, 34, 34);line-height:21px">Our simple implementation of <code style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-size:14px;font-family:inherit;vertical-align:baseline;line-height:1.5">IAddress>>editContact:</code> will save changes even when you press <em style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:italic;font-size:14px;font-family:inherit;vertical-align:baseline">cancel</em>. See <a title="Answer to the Caller" href="http://book.seaside.st/book/components/calling/answer" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-weight:inherit;font-style:inherit;font-size:14px;font-family:inherit;vertical-align:baseline;color:rgb(1, 89, 142);text-decoration:underline" target="_blank">Section 11.5</a> to understand how you can change this.</span></div>
<div><span style="font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:14px;color:rgb(34, 34, 34);line-height:21px"><br></span></div><div><span style="font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:14px;color:rgb(34, 34, 34);line-height:21px">In the context of section 11.5, ContactListView is 'call:'ing the editor and testing the return value to decide whether or not to save the changes. This is very straightforward. </span></div>
<div><span style="font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:14px;color:rgb(34, 34, 34);line-height:21px"><br></span></div><div><span style="font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:14px;color:rgb(34, 34, 34);line-height:21px">In the context of section 12.2, IAddress is embedding the editor and thus it is not clear or intuitive where I would test the return value of the editor to decide whether or not to save the changes. I'm sure this is an easy question for the season veterans, but I'm just not seeing it.</span></div>
<div><span style="font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:14px;color:rgb(34, 34, 34);line-height:21px"><br></span></div><div><font color="#222222" face="'Helvetica Neue', Arial, Helvetica, sans-serif" size="4"><span style="font-size:14px;line-height:21px">Thanks in advance for any help, pointers, etc...</span></font></div>
<div><font color="#222222" face="'Helvetica Neue', Arial, Helvetica, sans-serif" size="4"><span style="font-size:14px;line-height:21px"><br></span></font></div><font color="#888888">
<div><font color="#222222" face="'Helvetica Neue', Arial, Helvetica, sans-serif" size="4"><span style="font-size:14px;line-height:21px">Elliot</span></font></div>
</font><div><font color="#222222" face="'Helvetica Neue', Arial, Helvetica, sans-serif" size="4"><span style="font-size:14px;line-height:21px"><br></span></font></div>
<div><font color="#222222" face="'Helvetica Neue', Arial, Helvetica, sans-serif" size="4"><span style="font-size:14px;line-height:21px">P.S. This is using the Seaside 3.0 One-click on a Macbook Pro (OS X 10.6.4).</span></font></div>
<div><font color="#222222" face="'Helvetica Neue', Arial, Helvetica, sans-serif" size="4"><span style="font-size:14px;line-height:21px"><br></span></font></div>
<br></div></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></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://john-mckeon.us" target="_blank">http://john-mckeon.us</a><br>
</div>
<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><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://john-mckeon.us" target="_blank">http://john-mckeon.us</a><br>