Ah, great information Phillipe. Thanks, I'll review and implement anew tomorrow based on your suggestions. And, great blog post Michael.<br><br><div class="gmail_quote">On Tue, Jul 8, 2008 at 9:51 PM, Philippe Marschall <<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2008/7/5 Chris Dawson <<a href="mailto:xrdawson@gmail.com">xrdawson@gmail.com</a>>:<br>
<div class="Ih2E3d">> I want to create a new configuration dialog for my RSS component. I've<br>
> already created the proper class deriving from RRComponent and that is<br>
> working well. I want to override the RRHandlerEditor as well. It is not<br>
> calling my component and I am not sure why or how to debug.<br>
<br>
</div>RRHandlerEditor (or subclasses) as the name suggests, work on<br>
RRRssHandler instances or subclasses. All the editors never work<br>
directly on components. New components are instantiated at least for<br>
every session.<br>
<div class="Ih2E3d"><br>
> What I did: I already have a class MyRssComponent (derived from<br>
> RRComponent) which properly implements isFeed and canBeRoot on the class<br>
> side. I added two classes, one called MyRssHandlerEditor (deriving from<br>
> RRHandlerEditor) and MyRssHandler (deriving from WAEntryPoint).<br>
<br>
</div>You should probably derive from RRRssHandler, not WAEntryPoint.<br>
<div class="Ih2E3d"><br>
> Inside of<br>
> MyRssHandler I override only configurationComponent and change it to<br>
> instantiate an instance of MyRssHandlerEditor:<br>
><br>
> configurationComponent<br>
> ^MyRssHandlerEditor new<br>
> handler: self;<br>
> yourself<br>
><br>
> Then, inside of MyRssHandlerEditor I override renderFormOn: so that it is<br>
> changed slightly from . I also override registerAsApplication as a class<br>
> method inside of MyRssComponent that looks like this:<br>
><br>
> registerAsApplication: aString<br>
> WADispatcher default<br>
> register: ((MyRssHandler named: aString)<br>
> rootComponent: self;<br>
> yourself)<br>
<br>
</div>Are you sure #named: is what you need?<br>
<div class="Ih2E3d"><br>
> I never see the editor I've defined get called. I've been browsing around<br>
> the source for a while and am not sure how to troubleshoot this. If I call<br>
> self halt. within registerAsApplication nothing happens, neither with a ' 1<br>
> / 0. '<br>
<br>
</div>#registerAsApplication: never gets sent automatically, you'll have to<br>
do it yourself. The configuration component should show up in the<br>
configuration interface (in general under /seaside/config).<br>
<div class="Ih2E3d"><br>
> I do notice that if I put a 'self halt' into the registerAsApplication that<br>
> the icon in the squeak browser changes from a green down arrow to a red<br>
> flag. I assume this means something.<br>
<br>
</div>It means you put a halt in there.<br>
<div class="Ih2E3d"><br>
> I've noticed that the<br>
> registerAsApplication within RRComponent is a double-headed green arrow.<br>
> Can someone point out where I can understand what these mean?<br>
<br>
</div>It means it's overriding a method and as well being overridden.<br>
<br>
Cheers<br>
<font color="#888888">Philippe<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<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></div></blockquote></div><br>