<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'>
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 id="stopSpelling">Date: Sat, 10 Sep 2011 15:27:36 -0400<br>Subject: Re: [Seaside] call: works intermittently on Pharo<br>From: ljw1001@gmail.com<br>To: seaside@lists.squeakfoundation.org<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 class="ecxApple-tab-span" style="white-space:pre">                </span></div><br><div class="ecxgmail_quote">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 class="ecxgmail_quote" 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 class="ecxim"><div>On Sep 10, 2011, at 10:27 AM, Larry White wrote:</div><br></div><blockquote><div><div></div><div class="h5">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 class="ecxim">
_______________________________________________<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>_______________________________________________
seaside mailing list
seaside@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</div></div></div>                                               </div></body>
</html>