Hi people, I have a menu component that
renders the selected component. I need to include a stylesheet depending on
which component is selected. Seaside includes all the stylesheets of all the
components instead of the selected one's (I have redefine the #updateRoot method
in each component to include the correspondent stylesheet ) and some
css properties overlap. There is any way to avoid
that, without changing the html code or the stylesheets?
Thanks!!
Sebastian
_______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
I guess you return all possible components as children of the menu?
Only return the visible one, and then Seaside will call #updateRoot: only on that one. Lukas On Tue, Apr 7, 2009 at 9:43 PM, Sebastian Van Lacke <[hidden email]> wrote: > Hi people, I have a menu component that renders the selected component. I > need to include a stylesheet depending on which component is selected. > Seaside includes all the stylesheets of all the components instead of the > selected one's (I have redefine the #updateRoot method in each component to > include the correspondent stylesheet ) and some css properties overlap. > There is any way to avoid that, without changing the html code or the > stylesheets? > > Thanks!! > > Sebastian > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
But note it will also only call #updateStates: on that one so you can't modify backtracked state for any of the non-current components during your callbacks.
Julian On Tue, Apr 7, 2009 at 10:44 PM, Lukas Renggli <[hidden email]> wrote: I guess you return all possible components as children of the menu? _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Sebastia Van Lacke
Thanks Lucas and thanks Julian for the
clarification. I was returning the current component as child, but it was
another silly error on the code I was not watching.
I did not even consider backtracking, I will ask
again if anything gives trouble.
Thank you!
sebastian van lacke | developer | caesar systems
| see clearly. decide
smarter. [hidden email] | t: +1.281.598.8790 | t: +54.11.4389.0126
| www.caesarsystems.com _______________________________________________ seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |