css/js files added as header contribution not added via ajax request
--------------------------------------------------------------------
Key: WICKET-3255
URL: https://issues.apache.org/jira/browse/WICKET-3255
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4.14
Reporter: Zoltan Luspai
I'm trying to upgrade from 1.4.7 to 1.4.14 and found that css and js files
added as header contribution are not appearing in the ajax request.
Details are:
*I have a WikiPageCard (Panel subclass) class which adds two header
contributions like this:
this.add(CSSPackageResource.getHeaderContribution(WikiPageCard.class,
"WikiPageCard.css"));
this.add(JavascriptPackageResource.getHeaderContribution(WikiPageCard.class,
"WikiPageCard.js"));
The first instance of this WikiPageCard component is only added to the page in
an ajax request, so the css/js files are not part of the page during the
initial load. I had a look at the Wicket's ajax debug window, and I can see
that indeed these lines are missing from the ajax response with Wicket 1.4.14,
but they are present in 1.4.7:
{{{
<link rel="stylesheet" type="text/css"
href="../resources/com.intland.codebeamer.wicket.pages.wikiexporttopdf.WikiPageCard/WikiPageCard.css?w:lm=1289895391"
/>
< <script type="text/javascript"
src="../resources/com.intland.codebeamer.wicket.pages.wikiexporttopdf.WikiPageCard/WikiPageCard.js?w:lm=1289895391"></script>
}}}
Is this a regression, or just some change I'm missing?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.