Header Contribution order

8 views
Skip to first unread message

Al Rom Romans

unread,
Dec 15, 2011, 6:42:39 AM12/15/11
to jqwicket-user
Hi

I need to swap the order of the component header contribution. Today,
JQContributionHeader renders in this order

this.renderJsResourcesUrls(response,
target.getJsResourceUrls());
this.renderJsResourcesRefs(response,
target.getJsResourceReferences());
this.renderCssResourcesUrls(response,
target.getCssResourceUrls());
this.renderCssResourcesRefs(response,
target.getCssResourceReferences());
this.renderJavaScriptInsideDocumentReady(response,
target.getJQStatementsInsideDocumentReady());

I just need swap renderCssResourcesUrls with renderCssResourcesRefs,
because the application requires that the "site css" overrides the
component css. But it is really hard to change that in the code today:
this section of the code can not be easily changed - At least, I do
not see how could I do that.

Suggestions?
Any reason for JQcontributionHeader not asking to the component/
behavior contribute itself?

Thx

Alan

max

unread,
Dec 28, 2011, 6:47:56 AM12/28/11
to jqwick...@googlegroups.com
In jqwicket 0.8 it will be possible to control this behavior globally by specifing the rendering order in JQContributionConfig, e.g.:


JQContributionConfig config = new JQContributionConfig()
                        .renderJavascriptResourceRefsBeforeUrls()
                        .renderCssResourceRefsBeforeUrls()


Reply all
Reply to author
Forward
0 new messages