[Seaside] Re: HTML EMail

You use it *with* a Canvas. A Builder simply drives a Canvas (well,
any renderer) for you. It handles setting up the Document, the render
context, etc. and provides a way to get at the resulting content.
Look for senders of #builder in the image for a few examples.
Julian
On Wed, Jul 15, 2009 at 6:45 AM, Louis
LaBrunda<Lou at keystone-software.com> wrote:
> Thanks Julian and Philippe for your replies.
>> I do need to embed other Presenters within my rendering. So I guess
> Presenters are the way to go.
>> I would like to know more about the Builder you mentioned below. Can I use
> it instead of WARenderCanvas? If so, can you please give me an example.
>> Many thanks inadvance, Lou
>>>At first glance, it doesn't sound like you need a Component or a
>>Presenter at all. You just want to use a Canvas to generate some HTML
>>and you can do that from any object you want. By convention, you'd do
>>this by implementing an object with a #renderOn: method but even
>>that's not strictly necessary. In 2.9 you could subclass WAPainter.
>>>>An exception to the above would be if you need to embed other
>>Presenters within your rendering.
>>>>Also, if you haven't found it already, you might want to look at
>>Builder (you create one by calling the class-side #builder method on a
>>Canvas). This should make getting a string of the HTML easy.
>>>>Julian
>>>>On Tue, Jul 14, 2009 at 9:22 AM, Louis
>>LaBrunda<Lou at keystone-software.com> wrote:
>>> Hi All,
>>>>>> I am working on a Seaside server that as part of its function has to send
>>> EMail with HTML content. I have subclassed WAComponent to make an object
>>> that defines the HTML and used WARenderCanvas to render it. I am wondering
>>> if I should have subclassed WAPresenter instead of WAComponent. I'm not
>>> sure it matters much but would be interested in any comments.
>>>>>> Lou
>>> -----------------------------------------------------------
>>> Louis LaBrunda
>>> Keystone Software Corp.
>>> SkypeMe callto://PhotonDemon>>> mailto:Lou at Keystone-Software.comhttp://www.Keystone-Software.com>>>>>> _______________________________________________
>>> seaside mailing list
>>>seaside at lists.squeakfoundation.org>>>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>>>> -----------------------------------------------------------
> Louis LaBrunda
> Keystone Software Corp.
> SkypeMe callto://PhotonDemon> mailto:Lou at Keystone-Software.comhttp://www.Keystone-Software.com>> _______________________________________________
> seaside mailing list
>seaside at lists.squeakfoundation.org>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>