[Seaside] Tasks, Components, Magritte and Style

Daniel Lyons fusion at storytotell.org
Wed Mar 9 06:26:19 UTC 2011


I'm extremely new to Seaside, and I'm getting a bit confused at the intersection between these four concepts. All I want is:

1. Consistent style.
2. A Task involving a Magritte-generated component, with the same style.

Unless I'm mistaken, the right way to get consistent style is to implement updateRoot on your component to call addStyle. How does one go about this if the root of your app is a WATask subclass? I think I'm not understanding something fundamental about either nesting components or the relationship between tasks and components, because it seems like you would want to be able to say, this component in the tree is actually the first step in a task. For example, to render a containing component that has within it a login component, but without requiring the user click on "Login" before showing the login form. I can see how to kick off a task in response to an event like clicking.

I apologize for asking such a simple question in such a confounding way, this is just such a radical departure from what I'm used to, I feel like I'm missing something very basic.

Daniel Lyons

More information about the seaside mailing list