CSS issue with components on a menu

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

CSS issue with components on a menu

Sebastia Van Lacke
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
Reply | Threaded
Open this post in threaded view
|

Re: CSS issue with components on a menu

Lukas Renggli
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
Reply | Threaded
Open this post in threaded view
|

Re: CSS issue with components on a menu

Julian Fitzell-2
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?
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


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

Re: CSS issue with components on a menu

Sebastia Van Lacke
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 

This message and any attached documents contain information from Caesar Systems LLC that may be confidential/trade secret and/or privileged. If you are not the intended recipient, you may not read, copy, distribute or use this information. If you have received this transmission in error, please notify the sender immediately by telephone or by reply e-mail and then delete this message.


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