[Seaside] magritte forms - how to call and render forms?

Frank Shearar frank.shearar at angband.za.org
Tue May 4 09:15:16 UTC 2010


On 2010/05/04 07:22, sergio_101 wrote:
> i have an app that has several components..
>
> on one of the components, i pass 'self' as an argument so that i can
> do something like this:
>
> rootComponent mainArea: 'some new content'..
>
> what i am trying to figure out how to do is swap mainArea out with a
> magritte form directly..
>
> what i would like to do is swap 'mainArea' with the magritte form for
> an object.. process that form, then go back to whatever the form was
> doing..
>
> i have a feeling i am being a bit unclear.. but hopefully that makes sense..
>
> if anyone can help, i think this is my last stumbling block in getting
> all the pieces together..

In my Menu Planner, I do this:

     self call: MPRecipe bananaLoaf asComponent.

MPRecipe has all the class-side Magritte goodies like descriptionName etc.

Does that help?

frank


More information about the seaside mailing list