Hello,

I have a component tree where some components contribute CSS. I have
inline CSS for the parent component that should be contributed last in
order to override CSS of child components.

Children components contribute their CSS in their constructors using
add(new StyleSheetReference("cssId", getClass(), "/css/styles.css")).
I have to use this approach because other approaches don't work with
panel swapping (I have yet to create a JIRA issue for this).

The parent component is contributing CSS by calling
response.renderString("body {background-color:red}") from
IHeaderContributor#renderHead(IHeaderResponse).

I tried contributing parent CSS in parents onInitialize() and
onBeforeRender(), but children's CSS always get written last.

Is there any way to force parent's CSS to be contributed last?

Thanks,

Alec

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to