Still wondering if anyone has any input on this...? Thanks for any
help!
To clarify, the pages are specified like so...
AbstractMasterPage ( <-- extends WebPage)
<wicket:head>
<link type="text/css" rel="stylesheet" href="css/
AbstractMasterPage.css"/>
</wicket:head>
AbstractStaticTextPage ( <-- extends AbstractMasterPage)
<wicket:head>
<link type="text/css" rel="stylesheet" href="css/
AbstractStaticTextPage.css"/>
</wicket:head>
StaticTextPage ( <-- extends AbstractStaticTextPage)
<wicket:head>
<link type="text/css" rel="stylesheet" href="css/
StaticTextPage.css"/>
</wicket:head>
But in the rendered HTML, the CSS links show up in the *wrong order*:
<head>
<link href="css/AbstractMasterPage.css" type="text/css"
rel="stylesheet"/>
<link href="css/StaticTextPage.css" type="text/css"
rel="stylesheet"/>
<link href="css/AbstractStaticTextPage.css" type="text/
css" rel="stylesheet"/>
</head>
This results in parent-CSS overriding child-CSS, which is wrong.
Thanks again for any help!
On Mar 25, 2008, at 1:19 AM, Justin Morgan - Logic Sector wrote:
I'm having an issue with links to CSS files in Wicket 1.3.1. The
problem is the ordering of the links in the rendered HTML. The page
inheritance hierarchy goes like this:
AbstractMasterPage --> AbstractStaticTextPage --> StaticTextPage
However, the list of links brought in via the <wicket:head> section
are:
<link from AbstractMasterPage>
<link from StaticTextPage >
<link from AbstractStaticTextPage >
This is causing problems because of the way CSS inheritance works
with regard to CSS import order. In other words, it means that the
AbstractStaticTextPage CSS link is overriding the contents of the
StaticTextPage CSS link. This is the reverse of the way I think it
*should* work (I want CSS declarations in StaticTextPage to override
AbstractStaticTextPage, as you'd expect).
Any ideas? Thanks for any help!
Justin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]