You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-dev@incubator.apache.org by Martin Koci <Ma...@aura.cz> on 2006/09/21 15:01:05 UTC

Order of rendered style classes

Method FormInputRenderer.renderRootDomElementStyles renderes styleClass
as first followed with styles from skin. I think styleClass should be
the last one because common scenario uses skins and in special cases
user overrides style in JSP with styleClass attribute. 

In my case is it style "important" which makes font bold and blue but
with current renderRootDomElementStyles it has no effect.

Martin


Re: Order of rendered style classes

Posted by Simon Lessard <si...@gmail.com>.
Hello Martin,

I thought it worked that way before as well, however it's not the issue. The
style that will get the highest priority will be the last one defined in the
generated CSS not in the html element's class list. The order of the
selectors within the generated CSS is not really easy to control. The
easiest "doable" change would be to generate all non namespaced (starting
with "af|") selectors after the namespaced ones IMHO.


Regards,

~ Simon

On 9/21/06, Martin Koci <Ma...@aura.cz> wrote:
>
> Method FormInputRenderer.renderRootDomElementStyles renderes styleClass
> as first followed with styles from skin. I think styleClass should be
> the last one because common scenario uses skins and in special cases
> user overrides style in JSP with styleClass attribute.
>
> In my case is it style "important" which makes font bold and blue but
> with current renderRootDomElementStyles it has no effect.
>
> Martin
>
>