<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Sounds good. Unless you deleted the method in Pharo, you should be able to look at versions.<div><br></div><div>RS<br><br><div><hr id="stopSpelling">Date: Sat, 10 Sep 2011 16:32:14 -0400<br>Subject: Re: [Seaside] call: works intermittently on Pharo<br>From: ljw1001@gmail.com<br>To: seaside@lists.squeakfoundation.org<br><br>I don't think I can; it's gone.<div><br></div><div>I realized that my problem with the login form was a logic error. &nbsp;I was doing something like this.</div><div><br></div><div>in my rootUI rendering code:</div><div>
<br></div><div>loggedIn? ifTrue: [do something useful]</div><div>&nbsp;ifFalse: [ render login ].</div><div><br></div><div>then in login, I had an anchor that tried to render ForgotPasswordComponent, but the render loop looked at the above conditional and re-rendered the login form. sigh.</div>
<div><br></div><div>For the other situation. I literally fixed it by removing the intermediate component and copying the actions and rendering code from that component back to the root component. &nbsp;No idea why that fixed it. If I run into the problem again, I'll post with more info.<br>
<div><br><div class="ecxgmail_quote">On Sat, Sep 10, 2011 at 4:18 PM, Robert Sirois <span dir="ltr">&lt;<a href="mailto:watchlala@hotmail.com">watchlala@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">




<div><div dir="ltr">
Could you provide the code? It sounds like something other than Seaside is at fault. You should always be able to #call: and #answer regardless of state.<div><div><br>RS<br><br><div><hr>Date: Sat, 10 Sep 2011 15:27:36 -0400<br>
Subject: Re: [Seaside] call: works intermittently on Pharo<br>From: <a href="mailto:ljw1001@gmail.com">ljw1001@gmail.com</a><br>To: <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><div>
<div></div><div class="h5"><br><br>Sebastian, Thanks.<div><br></div><div>I am sending from within a callback. I got this case to work by eliminating a component that acted like a container between the root component and the component where the non-working render methods were implemented. &nbsp;Now I just have to understand -why- that would work and the other way not. &nbsp;</div>

<div><div><span style="white-space:pre-wrap">                </span></div><br><div>On Sat, Sep 10, 2011 at 10:45 AM, Sebastian Sastre <span dir="ltr">&lt;<a href="mailto:sebastian@flowingconcept.com">sebastian@flowingconcept.com</a>&gt;</span> wrote:<br>

<blockquote style="border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>be sure you are sending #addProduct from a callback action like:</div><div><br>
</div><div><br></div><div><span style="white-space:pre-wrap">        </span>html anchor</div><div><span style="white-space:pre-wrap">                </span>callback:[self addProduct]</div><div><span style="white-space:pre-wrap">                </span>with: 'Add this to cart'.</div>

<div><br></div><div style="word-wrap:break-word"><div><a href="http://about.me/sebastianconcept" target="_blank">sebastian</a></div><div><br></div><div>o/</div><div><br></div><div>PD: be sure NOT to send #addProduct from a render kind of method</div>

<div><br></div><div><br></div><div><br></div></div><div><div><div>On Sep 10, 2011, at 10:27 AM, Larry White wrote:</div><br></div><blockquote><div><div></div><div>Hi, I'm a newbie so apologies if I'm doing something dumb.<div>

<br><div>I'm working with Seaside in Pharo using the standard Seaside environment.</div><div><br></div><div>In my application, call: seems to work intermittently. &nbsp;For example, I have this method in one component:</div>


<div><br></div><div><div>addProduct</div><div><span style="white-space:pre-wrap">        </span>| editor |</div><div><br></div><div>editor := ProductEditorComponent new.</div><div><span style="white-space:pre-wrap">        </span>(self call: editor)</div>


<div><span style="white-space:pre-wrap">                </span>ifTrue: [ Dao new addProduct: product ]</div></div><div><br></div><div>When I run my app, the method gets invoked (a halt statement is hit when I add it to the method), but the ProductEditorComponent never renders and no exception is raised. &nbsp;I see this elsewhere in my app as well. On my login form I have a link to a "forgot password" component that worked for a while then stopped, also without raising an exception.&nbsp;</div>


<div><br></div><div>I'm assuming that what I'm doing wrong would be obvious to an experienced Seasider since it seems to be easy to get into this state. &nbsp;What causes a component to fail to render when called without raising an error?</div>


<div><br></div><div>Thanks much for any assistance.</div><div><br></div><div>Larry&nbsp;</div></div></div></div><div>
_______________________________________________<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>

</div></blockquote></div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">

<div><br></div></div></span></span>
</div>
<br></div><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></div>
<br></div></div>_______________________________________________
seaside mailing list
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div></div></div>                                               </div></div>
<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></div></div>
<br>_______________________________________________
seaside mailing list
seaside@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</div></div>                                               </div></body>
</html>