A more complete solution for loose coupling

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

A more complete solution for loose coupling

Sebastian Sastre-2
Hi all,
 
    I was reading Ramon's blog about announcements and loose coupling. This started as a (failed try of) Ramon's blog comment so then I though about posting it here because mays be of design interest.
 
    I found announcements not a complete solution. I admit that it is a complete solution in the server scope but not in the client-server scope as a whole.
 
    The kind of stuff that I found quite common and requires a bigger scope than announcements is a case like: when you want update one component lets say aBudgetTotal which is a subcomponent of aBudgetEditor. You want the update only when anItemEditor (also subcomponent of aBudgetEditor) triggers #changed (*key here*) at the user agent.
 
    How would be your (for all of us) favorite approach to this?
 
Cheers !
 
Sebastian Sastre

 


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: A more complete solution for loose coupling

Ramon Leon-5
>     The kind of stuff that I found quite common and requires
> a bigger scope than announcements is a case like: when you
> want update one component lets say aBudgetTotal which is a
> subcomponent of aBudgetEditor. You want the update only when
> anItemEditor (also subcomponent of aBudgetEditor) triggers
> #changed (*key here*) at the user agent.
>  
>     How would be your (for all of us) favorite approach to this?
>  
> Cheers !
>  
> Sebastian Sastre

ItemEditor has client side event happen that triggers an Ajax updater, the
update triggers an announcement that carries the render canvas as an
argument.  The BudgetEditor is registered to receive this announcement, and
when it happens, uses the renderer contained within to re-render the part of
the page necessary for it.  

I'm just thinking out loud here, I've not tried this, but I see no reason it
wouldn't work, while maintaining total loose coupling between the
components.

Ramon Leon
http://onsmalltalk.com 

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: A more complete solution for loose coupling

Sebastian Sastre-2
I'm installing Luka's announcements on squeak. I think the key is on that
renderer that should be set in the announcement.. o.O I'll try this and see
what happens

        cheers !

Sebastian Sastre


> -----Mensaje original-----
> De: [hidden email]
> [mailto:[hidden email]] En nombre
> de Ramon Leon
> Enviado el: Lunes, 01 de Octubre de 2007 15:56
> Para: 'Seaside - general discussion'
> Asunto: RE: [Seaside] A more complete solution for loose coupling
>
> >     The kind of stuff that I found quite common and
> requires a bigger
> > scope than announcements is a case like: when you want update one
> > component lets say aBudgetTotal which is a subcomponent of
> > aBudgetEditor. You want the update only when anItemEditor (also
> > subcomponent of aBudgetEditor) triggers #changed (*key
> here*) at the
> > user agent.
> >  
> >     How would be your (for all of us) favorite approach to this?
> >  
> > Cheers !
> >  
> > Sebastian Sastre
>
> ItemEditor has client side event happen that triggers an Ajax
> updater, the update triggers an announcement that carries the
> render canvas as an argument.  The BudgetEditor is registered
> to receive this announcement, and when it happens, uses the
> renderer contained within to re-render the part of the page
> necessary for it.  
>
> I'm just thinking out loud here, I've not tried this, but I
> see no reason it wouldn't work, while maintaining total loose
> coupling between the components.
>
> Ramon Leon
> http://onsmalltalk.com 
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside