Well you can check out SmallReddit application made by Ramon Leon at <a href="http://www.onsmalltalk.com">www.onsmalltalk.com</a><br><br>There is a login cum register page, only after successful login or registration, you are re-directed to next component in its
<span style="font-weight: bold;">go</span> method<br><br><div><span class="gmail_quote">On 7/30/07, <b class="gmail_sendername">Richard K Eng</b> <<a href="mailto:richard.eng@rogers.com">richard.eng@rogers.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I was trying to understand why this works. When I coded the block within the<br>Login component, it did not work. I NOW SEE THE LIGHT!
<br><br>It comes down to 'self'--which self are you calling method #call: from? It<br>has to be the main component! Because the callback block has to capture the<br>main component's context.<br><br>What I was doing was wrong because it was capturing the Login component's
<br>context--that's the reason GSServiceCentre was replacing the Login<br>component! I learned something very important today. What an eye-opener.<br><br>Thank you very much.<br><br>Regards,<br>Richard<br><br><br>Andrius Paulavicius wrote:
<br>---------------------------<br>Add an instance variable called onSave and its accesor methods to Login<br>component. When you create you're login component pass it a block:<br> login onSave: [self call: GSServiceCentre new].
<br>and in Login components save method evaluate that block:<br> onSave value.<br><br><br>> "Pass a callback block [self call: GSServiceCentre new] from you main to<br>> login component, and evaluate it with its method "value" when you want it
<br>> executed."<br>><br>> How do you do that? I'm not entirely familiar with Smalltalk syntax.<br>><br>> Thanks,<br>> Richard<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">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Rajeev Lochan<br><br>Co-founder, AR-CAD.com<br><br><a href="http://www.ar-cad.com">http://www.ar-cad.com</a><br>+91 9243468076 (Bangalore)<br>080 65355873