[Seaside] Brushes and state

James Foster Smalltalk at JGFoster.net
Thu Jun 18 17:29:01 UTC 2009


If you trace the package history you can see that I tried a variety of  
approaches, including using a component. I settled on making GoogleMap  
a brush (subclass of WADivTag). See GoogleMaps-jgf.21.mcz for an  
example of calling back to Smalltalk.

James

On Jun 18, 2009, at 7:47 AM, Mariano Montone wrote:

> Thanks James!
>
> I think I looked at your code once, but you didn't have callbacks  
> and implemented it only with brushes , didn't you? If you didn't, do  
> you have callbacks? And how did you implemented them? I'm supporting  
> callbacks now and am considering creating a component.
>
> Cheers
>
> Mariano
>
>
> On Thu, Jun 18, 2009 at 11:30 AM, James Foster  
> <Smalltalk at jgfoster.net> wrote:
> Mariano,
>
> I did a Seaside package for Google Maps. Check out http://seaside.gemstone.com/ss/GoogleMaps.html 
> . If you'd like to contribute to that project just register as a  
> developer and I'll add you to the project.
>
> James
>
>
> On Jun 18, 2009, at 5:51 AM, Mariano Montone wrote:
>
> Hello!,
>           I'm implementing an API for rendering Google Maps. I've  
> decided to implement it as a brush. That's because I'm just  
> generating javascript code. But now I have a problem: when adding  
> support for callbacks, I need to hold some state; for example, the  
> map the callback refers to. But I think brushes are not meant to  
> hold state, that is something left for the components mechanism,  
> isn't it? So I would like to know what would be the correct way of  
> implementing it in the framework. Should I implement maps as  
> components, or should I add state to my brushes; I may hold a state  
> in the callback block too, but I don't think that's good.
>
> Thanks!
>
> Mariano
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090618/d2d96c2f/attachment-0001.htm


More information about the seaside mailing list