You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Juergen Donnerstag <ju...@gmail.com> on 2008/04/01 22:43:12 UTC

Fwd: Bug in order of rendered links within ?

I have a fix for that and our junit tests are still ok with it. But as
always, some existing apps might behave differently because the order
of the css links will change (base first, derived last). Should that
go in before 1.3.3?

Juergen


 >
 > Begin forwarded message:
 > > From: "Matej Knopp" <ma...@gmail.com>
 > > Date: March 25, 2008 11:51:20 AM PDT
 > > To: users@wicket.apache.org
 > > Subject: Re: Bug in order of rendered links within <wicket:head> ?
 > > Reply-To: users@wicket.apache.org
 > >
 > > I agree that we should. But I'm not sure why the order is like this.
 > > Juergen?
 > >
 > > -Matej
 > >
 > > On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg <igor.vaynberg@gmail.com
 > > > wrote:
 > >> matej? do we guarantee the order? looks like we should?
 > >>
 > >> -igor
 > >>
 > >>
 > >>
 > >>
 > >> On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector
 > >> <jm...@logicsector.com> wrote:
 > >>> 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
 > >>>>
 > >>>
 >

Re: Bug in order of rendered links within ?

Posted by Frank Bille <fr...@apache.org>.
thx

On Sun, Apr 6, 2008 at 9:53 AM, Juergen Donnerstag
<ju...@gmail.com> wrote:
> Don't think he did. Shall I?
>
>  Juergen
>
>
>
>  On Sat, Apr 5, 2008 at 8:32 PM, Frank Bille <fr...@apache.org> wrote:
>  > Did you ever create it in jira?
>  >
>  >  Frank
>  >
>  >
>  >
>  >
>  >  On Wed, Apr 2, 2008 at 9:18 AM, Frank Bille <fr...@apache.org> wrote:
>  >  > Noted.
>  >  >
>  >  >  Frank
>  >  >
>  >  >  On Wed, Apr 2, 2008 at 8:33 AM, Martijn Dashorst
>  >  >
>  >  >
>  >  > <ma...@gmail.com> wrote:
>  >  >  > I see...   Perhaps 1.3.3 is better... should make it a big release note though!
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  On 4/2/08, Juergen Donnerstag <ju...@gmail.com> wrote:
>  >  >  >  > I is currently working fine if inheritance is just one level deep. But
>  >  >  >  >  if it is 2 or more level deep than each higher level gets inserted
>  >  >  >  >  after the first <wicket:head>. E.g.
>  >  >  >  >
>  >  >  >  >  <script href="basebase.css"/>
>  >  >  >  >  <script href="base.css"/>
>  >  >  >  >
>  >  >  >  >  <script href="basebase.css"/>
>  >  >  >  >   <-- gets inserted here ><script href="extension.css"/>
>  >  >  >  >  <script href="base.css"/>
>  >  >  >  >
>  >  >  >  >  should be like
>  >  >  >  >  <script href="basebase.css"/>
>  >  >  >  >  <script href="base.css"/>
>  >  >  >  >  <script href="extension.css"/>
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  Juergen
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  On Tue, Apr 1, 2008 at 11:31 PM, Martijn Dashorst
>  >  >  >  >  <ma...@gmail.com> wrote:
>  >  >  >  >  > I'd err on the side of caution. I'd like it to go into 1.4.
>  >  >  >  >  >
>  >  >  >  >  >  Martijn
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  On 4/1/08, Johan Compagner <jc...@gmail.com> wrote:
>  >  >  >  >  >  > how was it now exactly with css?
>  >  >  >  >  >  >  pretty random or mixed? or was it now that derived first (in order) to base
>  >  >  >  >  >  >  last? (so is it exactly reversed)
>  >  >  >  >  >  >  or is it that it was a bit more random?
>  >  >  >  >  >  >
>  >  >  >  >  >  >  If it was pretty random then it can go in 1.3.3, dont know about the exact
>  >  >  >  >  >  >  reverse then i guess we could wait for 1.4 (generic release with a milestone
>  >  >  >  >  >  >  build first)
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >  johan
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >  On Tue, Apr 1, 2008 at 10:43 PM, Juergen Donnerstag <
>  >  >  >  >  >  >  juergen.donnerstag@gmail.com> wrote:
>  >  >  >  >  >  >
>  >  >  >  >  >  >  > I have a fix for that and our junit tests are still ok with it. But as
>  >  >  >  >  >  >  > always, some existing apps might behave differently because the order
>  >  >  >  >  >  >  > of the css links will change (base first, derived last). Should that
>  >  >  >  >  >  >  > go in before 1.3.3?
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  > Juergen
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  > Begin forwarded message:
>  >  >  >  >  >  >  >  > > From: "Matej Knopp" <ma...@gmail.com>
>  >  >  >  >  >  >  >  > > Date: March 25, 2008 11:51:20 AM PDT
>  >  >  >  >  >  >  >  > > To: users@wicket.apache.org
>  >  >  >  >  >  >  >  > > Subject: Re: Bug in order of rendered links within <wicket:head> ?
>  >  >  >  >  >  >  >  > > Reply-To: users@wicket.apache.org
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > > I agree that we should. But I'm not sure why the order is like this.
>  >  >  >  >  >  >  >  > > Juergen?
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > > -Matej
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > > On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg <
>  >  >  >  >  >  >  > igor.vaynberg@gmail.com
>  >  >  >  >  >  >  >  > > > wrote:
>  >  >  >  >  >  >  >  > >> matej? do we guarantee the order? looks like we should?
>  >  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  >  > >> -igor
>  >  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  >  > >> On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector
>  >  >  >  >  >  >  >  > >> <jm...@logicsector.com> wrote:
>  >  >  >  >  >  >  >  > >>> 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
>  >  >  >  >  >  >  >  > >>>>
>  >  >  >  >  >  >  >  > >>>
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  --
>  >  >  >  >  >  Buy Wicket in Action: http://manning.com/dashorst
>  >  >  >  >  >  Apache Wicket 1.3.2 is released
>  >  >  >  >  >  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  --
>  >  >  >
>  >  >  >
>  >  >  > Buy Wicket in Action: http://manning.com/dashorst
>  >  >  >  Apache Wicket 1.3.2 is released
>  >  >  >  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>  >  >  >
>  >  >
>  >
>

Re: Bug in order of rendered links within ?

Posted by Juergen Donnerstag <ju...@gmail.com>.
Don't think he did. Shall I?

Juergen

On Sat, Apr 5, 2008 at 8:32 PM, Frank Bille <fr...@apache.org> wrote:
> Did you ever create it in jira?
>
>  Frank
>
>
>
>
>  On Wed, Apr 2, 2008 at 9:18 AM, Frank Bille <fr...@apache.org> wrote:
>  > Noted.
>  >
>  >  Frank
>  >
>  >  On Wed, Apr 2, 2008 at 8:33 AM, Martijn Dashorst
>  >
>  >
>  > <ma...@gmail.com> wrote:
>  >  > I see...   Perhaps 1.3.3 is better... should make it a big release note though!
>  >  >
>  >  >
>  >  >
>  >  >  On 4/2/08, Juergen Donnerstag <ju...@gmail.com> wrote:
>  >  >  > I is currently working fine if inheritance is just one level deep. But
>  >  >  >  if it is 2 or more level deep than each higher level gets inserted
>  >  >  >  after the first <wicket:head>. E.g.
>  >  >  >
>  >  >  >  <script href="basebase.css"/>
>  >  >  >  <script href="base.css"/>
>  >  >  >
>  >  >  >  <script href="basebase.css"/>
>  >  >  >   <-- gets inserted here ><script href="extension.css"/>
>  >  >  >  <script href="base.css"/>
>  >  >  >
>  >  >  >  should be like
>  >  >  >  <script href="basebase.css"/>
>  >  >  >  <script href="base.css"/>
>  >  >  >  <script href="extension.css"/>
>  >  >  >
>  >  >  >
>  >  >  >  Juergen
>  >  >  >
>  >  >  >
>  >  >  >  On Tue, Apr 1, 2008 at 11:31 PM, Martijn Dashorst
>  >  >  >  <ma...@gmail.com> wrote:
>  >  >  >  > I'd err on the side of caution. I'd like it to go into 1.4.
>  >  >  >  >
>  >  >  >  >  Martijn
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  On 4/1/08, Johan Compagner <jc...@gmail.com> wrote:
>  >  >  >  >  > how was it now exactly with css?
>  >  >  >  >  >  pretty random or mixed? or was it now that derived first (in order) to base
>  >  >  >  >  >  last? (so is it exactly reversed)
>  >  >  >  >  >  or is it that it was a bit more random?
>  >  >  >  >  >
>  >  >  >  >  >  If it was pretty random then it can go in 1.3.3, dont know about the exact
>  >  >  >  >  >  reverse then i guess we could wait for 1.4 (generic release with a milestone
>  >  >  >  >  >  build first)
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  johan
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  On Tue, Apr 1, 2008 at 10:43 PM, Juergen Donnerstag <
>  >  >  >  >  >  juergen.donnerstag@gmail.com> wrote:
>  >  >  >  >  >
>  >  >  >  >  >  > I have a fix for that and our junit tests are still ok with it. But as
>  >  >  >  >  >  > always, some existing apps might behave differently because the order
>  >  >  >  >  >  > of the css links will change (base first, derived last). Should that
>  >  >  >  >  >  > go in before 1.3.3?
>  >  >  >  >  >  >
>  >  >  >  >  >  > Juergen
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  > Begin forwarded message:
>  >  >  >  >  >  >  > > From: "Matej Knopp" <ma...@gmail.com>
>  >  >  >  >  >  >  > > Date: March 25, 2008 11:51:20 AM PDT
>  >  >  >  >  >  >  > > To: users@wicket.apache.org
>  >  >  >  >  >  >  > > Subject: Re: Bug in order of rendered links within <wicket:head> ?
>  >  >  >  >  >  >  > > Reply-To: users@wicket.apache.org
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > > I agree that we should. But I'm not sure why the order is like this.
>  >  >  >  >  >  >  > > Juergen?
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > > -Matej
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > > On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg <
>  >  >  >  >  >  > igor.vaynberg@gmail.com
>  >  >  >  >  >  >  > > > wrote:
>  >  >  >  >  >  >  > >> matej? do we guarantee the order? looks like we should?
>  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  > >> -igor
>  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  > >>
>  >  >  >  >  >  >  > >> On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector
>  >  >  >  >  >  >  > >> <jm...@logicsector.com> wrote:
>  >  >  >  >  >  >  > >>> 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
>  >  >  >  >  >  >  > >>>>
>  >  >  >  >  >  >  > >>>
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  --
>  >  >  >  >  Buy Wicket in Action: http://manning.com/dashorst
>  >  >  >  >  Apache Wicket 1.3.2 is released
>  >  >  >  >  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>  >  >  >  >
>  >  >  >
>  >  >
>  >  >
>  >  >  --
>  >  >
>  >  >
>  >  > Buy Wicket in Action: http://manning.com/dashorst
>  >  >  Apache Wicket 1.3.2 is released
>  >  >  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>  >  >
>  >
>

Re: Bug in order of rendered links within ?

Posted by Frank Bille <fr...@apache.org>.
Did you ever create it in jira?

Frank


On Wed, Apr 2, 2008 at 9:18 AM, Frank Bille <fr...@apache.org> wrote:
> Noted.
>
>  Frank
>
>  On Wed, Apr 2, 2008 at 8:33 AM, Martijn Dashorst
>
>
> <ma...@gmail.com> wrote:
>  > I see...   Perhaps 1.3.3 is better... should make it a big release note though!
>  >
>  >
>  >
>  >  On 4/2/08, Juergen Donnerstag <ju...@gmail.com> wrote:
>  >  > I is currently working fine if inheritance is just one level deep. But
>  >  >  if it is 2 or more level deep than each higher level gets inserted
>  >  >  after the first <wicket:head>. E.g.
>  >  >
>  >  >  <script href="basebase.css"/>
>  >  >  <script href="base.css"/>
>  >  >
>  >  >  <script href="basebase.css"/>
>  >  >   <-- gets inserted here ><script href="extension.css"/>
>  >  >  <script href="base.css"/>
>  >  >
>  >  >  should be like
>  >  >  <script href="basebase.css"/>
>  >  >  <script href="base.css"/>
>  >  >  <script href="extension.css"/>
>  >  >
>  >  >
>  >  >  Juergen
>  >  >
>  >  >
>  >  >  On Tue, Apr 1, 2008 at 11:31 PM, Martijn Dashorst
>  >  >  <ma...@gmail.com> wrote:
>  >  >  > I'd err on the side of caution. I'd like it to go into 1.4.
>  >  >  >
>  >  >  >  Martijn
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  On 4/1/08, Johan Compagner <jc...@gmail.com> wrote:
>  >  >  >  > how was it now exactly with css?
>  >  >  >  >  pretty random or mixed? or was it now that derived first (in order) to base
>  >  >  >  >  last? (so is it exactly reversed)
>  >  >  >  >  or is it that it was a bit more random?
>  >  >  >  >
>  >  >  >  >  If it was pretty random then it can go in 1.3.3, dont know about the exact
>  >  >  >  >  reverse then i guess we could wait for 1.4 (generic release with a milestone
>  >  >  >  >  build first)
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  johan
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  On Tue, Apr 1, 2008 at 10:43 PM, Juergen Donnerstag <
>  >  >  >  >  juergen.donnerstag@gmail.com> wrote:
>  >  >  >  >
>  >  >  >  >  > I have a fix for that and our junit tests are still ok with it. But as
>  >  >  >  >  > always, some existing apps might behave differently because the order
>  >  >  >  >  > of the css links will change (base first, derived last). Should that
>  >  >  >  >  > go in before 1.3.3?
>  >  >  >  >  >
>  >  >  >  >  > Juergen
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  > Begin forwarded message:
>  >  >  >  >  >  > > From: "Matej Knopp" <ma...@gmail.com>
>  >  >  >  >  >  > > Date: March 25, 2008 11:51:20 AM PDT
>  >  >  >  >  >  > > To: users@wicket.apache.org
>  >  >  >  >  >  > > Subject: Re: Bug in order of rendered links within <wicket:head> ?
>  >  >  >  >  >  > > Reply-To: users@wicket.apache.org
>  >  >  >  >  >  > >
>  >  >  >  >  >  > > I agree that we should. But I'm not sure why the order is like this.
>  >  >  >  >  >  > > Juergen?
>  >  >  >  >  >  > >
>  >  >  >  >  >  > > -Matej
>  >  >  >  >  >  > >
>  >  >  >  >  >  > > On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg <
>  >  >  >  >  > igor.vaynberg@gmail.com
>  >  >  >  >  >  > > > wrote:
>  >  >  >  >  >  > >> matej? do we guarantee the order? looks like we should?
>  >  >  >  >  >  > >>
>  >  >  >  >  >  > >> -igor
>  >  >  >  >  >  > >>
>  >  >  >  >  >  > >>
>  >  >  >  >  >  > >>
>  >  >  >  >  >  > >>
>  >  >  >  >  >  > >> On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector
>  >  >  >  >  >  > >> <jm...@logicsector.com> wrote:
>  >  >  >  >  >  > >>> 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
>  >  >  >  >  >  > >>>>
>  >  >  >  >  >  > >>>
>  >  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  --
>  >  >  >  Buy Wicket in Action: http://manning.com/dashorst
>  >  >  >  Apache Wicket 1.3.2 is released
>  >  >  >  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>  >  >  >
>  >  >
>  >
>  >
>  >  --
>  >
>  >
>  > Buy Wicket in Action: http://manning.com/dashorst
>  >  Apache Wicket 1.3.2 is released
>  >  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>  >
>

Re: Bug in order of rendered links within ?

Posted by Frank Bille <fr...@apache.org>.
Noted.

Frank

On Wed, Apr 2, 2008 at 8:33 AM, Martijn Dashorst
<ma...@gmail.com> wrote:
> I see...   Perhaps 1.3.3 is better... should make it a big release note though!
>
>
>
>  On 4/2/08, Juergen Donnerstag <ju...@gmail.com> wrote:
>  > I is currently working fine if inheritance is just one level deep. But
>  >  if it is 2 or more level deep than each higher level gets inserted
>  >  after the first <wicket:head>. E.g.
>  >
>  >  <script href="basebase.css"/>
>  >  <script href="base.css"/>
>  >
>  >  <script href="basebase.css"/>
>  >   <-- gets inserted here ><script href="extension.css"/>
>  >  <script href="base.css"/>
>  >
>  >  should be like
>  >  <script href="basebase.css"/>
>  >  <script href="base.css"/>
>  >  <script href="extension.css"/>
>  >
>  >
>  >  Juergen
>  >
>  >
>  >  On Tue, Apr 1, 2008 at 11:31 PM, Martijn Dashorst
>  >  <ma...@gmail.com> wrote:
>  >  > I'd err on the side of caution. I'd like it to go into 1.4.
>  >  >
>  >  >  Martijn
>  >  >
>  >  >
>  >  >
>  >  >  On 4/1/08, Johan Compagner <jc...@gmail.com> wrote:
>  >  >  > how was it now exactly with css?
>  >  >  >  pretty random or mixed? or was it now that derived first (in order) to base
>  >  >  >  last? (so is it exactly reversed)
>  >  >  >  or is it that it was a bit more random?
>  >  >  >
>  >  >  >  If it was pretty random then it can go in 1.3.3, dont know about the exact
>  >  >  >  reverse then i guess we could wait for 1.4 (generic release with a milestone
>  >  >  >  build first)
>  >  >  >
>  >  >  >
>  >  >  >  johan
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  On Tue, Apr 1, 2008 at 10:43 PM, Juergen Donnerstag <
>  >  >  >  juergen.donnerstag@gmail.com> wrote:
>  >  >  >
>  >  >  >  > I have a fix for that and our junit tests are still ok with it. But as
>  >  >  >  > always, some existing apps might behave differently because the order
>  >  >  >  > of the css links will change (base first, derived last). Should that
>  >  >  >  > go in before 1.3.3?
>  >  >  >  >
>  >  >  >  > Juergen
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  > Begin forwarded message:
>  >  >  >  >  > > From: "Matej Knopp" <ma...@gmail.com>
>  >  >  >  >  > > Date: March 25, 2008 11:51:20 AM PDT
>  >  >  >  >  > > To: users@wicket.apache.org
>  >  >  >  >  > > Subject: Re: Bug in order of rendered links within <wicket:head> ?
>  >  >  >  >  > > Reply-To: users@wicket.apache.org
>  >  >  >  >  > >
>  >  >  >  >  > > I agree that we should. But I'm not sure why the order is like this.
>  >  >  >  >  > > Juergen?
>  >  >  >  >  > >
>  >  >  >  >  > > -Matej
>  >  >  >  >  > >
>  >  >  >  >  > > On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg <
>  >  >  >  > igor.vaynberg@gmail.com
>  >  >  >  >  > > > wrote:
>  >  >  >  >  > >> matej? do we guarantee the order? looks like we should?
>  >  >  >  >  > >>
>  >  >  >  >  > >> -igor
>  >  >  >  >  > >>
>  >  >  >  >  > >>
>  >  >  >  >  > >>
>  >  >  >  >  > >>
>  >  >  >  >  > >> On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector
>  >  >  >  >  > >> <jm...@logicsector.com> wrote:
>  >  >  >  >  > >>> 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
>  >  >  >  >  > >>>>
>  >  >  >  >  > >>>
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >
>  >  >
>  >  >
>  >  >  --
>  >  >  Buy Wicket in Action: http://manning.com/dashorst
>  >  >  Apache Wicket 1.3.2 is released
>  >  >  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>  >  >
>  >
>
>
>  --
>
>
> Buy Wicket in Action: http://manning.com/dashorst
>  Apache Wicket 1.3.2 is released
>  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>

Re: Bug in order of rendered links within ?

Posted by Martijn Dashorst <ma...@gmail.com>.
I see...   Perhaps 1.3.3 is better... should make it a big release note though!

On 4/2/08, Juergen Donnerstag <ju...@gmail.com> wrote:
> I is currently working fine if inheritance is just one level deep. But
>  if it is 2 or more level deep than each higher level gets inserted
>  after the first <wicket:head>. E.g.
>
>  <script href="basebase.css"/>
>  <script href="base.css"/>
>
>  <script href="basebase.css"/>
>   <-- gets inserted here ><script href="extension.css"/>
>  <script href="base.css"/>
>
>  should be like
>  <script href="basebase.css"/>
>  <script href="base.css"/>
>  <script href="extension.css"/>
>
>
>  Juergen
>
>
>  On Tue, Apr 1, 2008 at 11:31 PM, Martijn Dashorst
>  <ma...@gmail.com> wrote:
>  > I'd err on the side of caution. I'd like it to go into 1.4.
>  >
>  >  Martijn
>  >
>  >
>  >
>  >  On 4/1/08, Johan Compagner <jc...@gmail.com> wrote:
>  >  > how was it now exactly with css?
>  >  >  pretty random or mixed? or was it now that derived first (in order) to base
>  >  >  last? (so is it exactly reversed)
>  >  >  or is it that it was a bit more random?
>  >  >
>  >  >  If it was pretty random then it can go in 1.3.3, dont know about the exact
>  >  >  reverse then i guess we could wait for 1.4 (generic release with a milestone
>  >  >  build first)
>  >  >
>  >  >
>  >  >  johan
>  >  >
>  >  >
>  >  >
>  >  >  On Tue, Apr 1, 2008 at 10:43 PM, Juergen Donnerstag <
>  >  >  juergen.donnerstag@gmail.com> wrote:
>  >  >
>  >  >  > I have a fix for that and our junit tests are still ok with it. But as
>  >  >  > always, some existing apps might behave differently because the order
>  >  >  > of the css links will change (base first, derived last). Should that
>  >  >  > go in before 1.3.3?
>  >  >  >
>  >  >  > Juergen
>  >  >  >
>  >  >  >
>  >  >  >  >
>  >  >  >  > Begin forwarded message:
>  >  >  >  > > From: "Matej Knopp" <ma...@gmail.com>
>  >  >  >  > > Date: March 25, 2008 11:51:20 AM PDT
>  >  >  >  > > To: users@wicket.apache.org
>  >  >  >  > > Subject: Re: Bug in order of rendered links within <wicket:head> ?
>  >  >  >  > > Reply-To: users@wicket.apache.org
>  >  >  >  > >
>  >  >  >  > > I agree that we should. But I'm not sure why the order is like this.
>  >  >  >  > > Juergen?
>  >  >  >  > >
>  >  >  >  > > -Matej
>  >  >  >  > >
>  >  >  >  > > On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg <
>  >  >  > igor.vaynberg@gmail.com
>  >  >  >  > > > wrote:
>  >  >  >  > >> matej? do we guarantee the order? looks like we should?
>  >  >  >  > >>
>  >  >  >  > >> -igor
>  >  >  >  > >>
>  >  >  >  > >>
>  >  >  >  > >>
>  >  >  >  > >>
>  >  >  >  > >> On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector
>  >  >  >  > >> <jm...@logicsector.com> wrote:
>  >  >  >  > >>> 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
>  >  >  >  > >>>>
>  >  >  >  > >>>
>  >  >  >  >
>  >  >  >
>  >  >
>  >
>  >
>  >  --
>  >  Buy Wicket in Action: http://manning.com/dashorst
>  >  Apache Wicket 1.3.2 is released
>  >  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>  >
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

Re: Bug in order of rendered links within ?

Posted by Juergen Donnerstag <ju...@gmail.com>.
I is currently working fine if inheritance is just one level deep. But
if it is 2 or more level deep than each higher level gets inserted
after the first <wicket:head>. E.g.

<script href="basebase.css"/>
<script href="base.css"/>

<script href="basebase.css"/>
 <-- gets inserted here ><script href="extension.css"/>
<script href="base.css"/>

should be like
<script href="basebase.css"/>
<script href="base.css"/>
<script href="extension.css"/>

Juergen

On Tue, Apr 1, 2008 at 11:31 PM, Martijn Dashorst
<ma...@gmail.com> wrote:
> I'd err on the side of caution. I'd like it to go into 1.4.
>
>  Martijn
>
>
>
>  On 4/1/08, Johan Compagner <jc...@gmail.com> wrote:
>  > how was it now exactly with css?
>  >  pretty random or mixed? or was it now that derived first (in order) to base
>  >  last? (so is it exactly reversed)
>  >  or is it that it was a bit more random?
>  >
>  >  If it was pretty random then it can go in 1.3.3, dont know about the exact
>  >  reverse then i guess we could wait for 1.4 (generic release with a milestone
>  >  build first)
>  >
>  >
>  >  johan
>  >
>  >
>  >
>  >  On Tue, Apr 1, 2008 at 10:43 PM, Juergen Donnerstag <
>  >  juergen.donnerstag@gmail.com> wrote:
>  >
>  >  > I have a fix for that and our junit tests are still ok with it. But as
>  >  > always, some existing apps might behave differently because the order
>  >  > of the css links will change (base first, derived last). Should that
>  >  > go in before 1.3.3?
>  >  >
>  >  > Juergen
>  >  >
>  >  >
>  >  >  >
>  >  >  > Begin forwarded message:
>  >  >  > > From: "Matej Knopp" <ma...@gmail.com>
>  >  >  > > Date: March 25, 2008 11:51:20 AM PDT
>  >  >  > > To: users@wicket.apache.org
>  >  >  > > Subject: Re: Bug in order of rendered links within <wicket:head> ?
>  >  >  > > Reply-To: users@wicket.apache.org
>  >  >  > >
>  >  >  > > I agree that we should. But I'm not sure why the order is like this.
>  >  >  > > Juergen?
>  >  >  > >
>  >  >  > > -Matej
>  >  >  > >
>  >  >  > > On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg <
>  >  > igor.vaynberg@gmail.com
>  >  >  > > > wrote:
>  >  >  > >> matej? do we guarantee the order? looks like we should?
>  >  >  > >>
>  >  >  > >> -igor
>  >  >  > >>
>  >  >  > >>
>  >  >  > >>
>  >  >  > >>
>  >  >  > >> On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector
>  >  >  > >> <jm...@logicsector.com> wrote:
>  >  >  > >>> 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
>  >  >  > >>>>
>  >  >  > >>>
>  >  >  >
>  >  >
>  >
>
>
>  --
>  Buy Wicket in Action: http://manning.com/dashorst
>  Apache Wicket 1.3.2 is released
>  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2
>

Re: Bug in order of rendered links within ?

Posted by Martijn Dashorst <ma...@gmail.com>.
I'd err on the side of caution. I'd like it to go into 1.4.

Martijn

On 4/1/08, Johan Compagner <jc...@gmail.com> wrote:
> how was it now exactly with css?
>  pretty random or mixed? or was it now that derived first (in order) to base
>  last? (so is it exactly reversed)
>  or is it that it was a bit more random?
>
>  If it was pretty random then it can go in 1.3.3, dont know about the exact
>  reverse then i guess we could wait for 1.4 (generic release with a milestone
>  build first)
>
>
>  johan
>
>
>
>  On Tue, Apr 1, 2008 at 10:43 PM, Juergen Donnerstag <
>  juergen.donnerstag@gmail.com> wrote:
>
>  > I have a fix for that and our junit tests are still ok with it. But as
>  > always, some existing apps might behave differently because the order
>  > of the css links will change (base first, derived last). Should that
>  > go in before 1.3.3?
>  >
>  > Juergen
>  >
>  >
>  >  >
>  >  > Begin forwarded message:
>  >  > > From: "Matej Knopp" <ma...@gmail.com>
>  >  > > Date: March 25, 2008 11:51:20 AM PDT
>  >  > > To: users@wicket.apache.org
>  >  > > Subject: Re: Bug in order of rendered links within <wicket:head> ?
>  >  > > Reply-To: users@wicket.apache.org
>  >  > >
>  >  > > I agree that we should. But I'm not sure why the order is like this.
>  >  > > Juergen?
>  >  > >
>  >  > > -Matej
>  >  > >
>  >  > > On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg <
>  > igor.vaynberg@gmail.com
>  >  > > > wrote:
>  >  > >> matej? do we guarantee the order? looks like we should?
>  >  > >>
>  >  > >> -igor
>  >  > >>
>  >  > >>
>  >  > >>
>  >  > >>
>  >  > >> On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector
>  >  > >> <jm...@logicsector.com> wrote:
>  >  > >>> 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
>  >  > >>>>
>  >  > >>>
>  >  >
>  >
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

Re: Bug in order of rendered links within ?

Posted by Johan Compagner <jc...@gmail.com>.
how was it now exactly with css?
pretty random or mixed? or was it now that derived first (in order) to base
last? (so is it exactly reversed)
or is it that it was a bit more random?

If it was pretty random then it can go in 1.3.3, dont know about the exact
reverse then i guess we could wait for 1.4 (generic release with a milestone
build first)

johan


On Tue, Apr 1, 2008 at 10:43 PM, Juergen Donnerstag <
juergen.donnerstag@gmail.com> wrote:

> I have a fix for that and our junit tests are still ok with it. But as
> always, some existing apps might behave differently because the order
> of the css links will change (base first, derived last). Should that
> go in before 1.3.3?
>
> Juergen
>
>
>  >
>  > Begin forwarded message:
>  > > From: "Matej Knopp" <ma...@gmail.com>
>  > > Date: March 25, 2008 11:51:20 AM PDT
>  > > To: users@wicket.apache.org
>  > > Subject: Re: Bug in order of rendered links within <wicket:head> ?
>  > > Reply-To: users@wicket.apache.org
>  > >
>  > > I agree that we should. But I'm not sure why the order is like this.
>  > > Juergen?
>  > >
>  > > -Matej
>  > >
>  > > On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg <
> igor.vaynberg@gmail.com
>  > > > wrote:
>  > >> matej? do we guarantee the order? looks like we should?
>  > >>
>  > >> -igor
>  > >>
>  > >>
>  > >>
>  > >>
>  > >> On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector
>  > >> <jm...@logicsector.com> wrote:
>  > >>> 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
>  > >>>>
>  > >>>
>  >
>