The problem is that you have to specify it in your java code. I prefer to have the flexibility of only specifying it in the markup. This allows me to use styles more effectively as I only have to specify the CSS link in the markup files that require it. It's not a big deal (it's just a preference), but I would bet that other people will want it in the future also.
On Jun 24, 2006, at 3:51 AM, Juergen Donnerstag wrote: > I haven't understood how that is different. Lets say this is a > Page's markup > (copied from previous mail) >> <html> >> <head> >> <title wicket:id="title">My Template</title> >> <wicket:headers/> >> <link href="/myStyle.css" type="text/css" rel="stylesheet"/> >> </head> >> .... >> </html> > > what is the difference between the static css link and a dynamic > one like > add(HeaderContributor.forCss(MyChildPage.class, "MyChildCSS.css")); > Both are referencing a css file. The html ouput will be the same. > > Juergen > > On 6/23/06, Michael Day <[EMAIL PROTECTED]> wrote: >> I finally got around to this again, and I don't particularly like the >> idea of using the following to add CSS contributions last: >> >> add(HeaderContributor.forCss(MyChildPage.class, "MyChildCSS.css")); >> >> The problem is that I'm trying to specify a CSS override file for >> only *some* of my "styles/variations" of a particular page. So I >> prefer not to have a wicket component linking to the CSS >> contribution. Therefore, I'm thinking Davy's suggestion below might >> be better. Is this difficult to implement? >> >> Thanks, >> >> Michael Day >> >> On 6/14/06, Davy De Durpel <[EMAIL PROTECTED]> wrote: >>> >>> I ran into a similar problem and my workaround was to use the "id" >> attribute >>> for overwriting a style. But that is not a clean solution since >> it makes >>> the CSS files very hard to read and you don't always have full >> control of >>> the "id" attribute value. >>> >>> Maybe we need an extra optional wicket tag to indicate the >> position where we >>> want the <wicket:head> stuff to be inserted. That way we can link >> our >>> stylesheet after this tag so that we can easily overwrite any >> style of any >>> of the children. So this would be something like: >>> >>> <html> >>> <head> >>> <title wicket:id="title">My Template</title> >>> <wicket:headers/> >>> <link href="/myStyle.css" type="text/css" rel="stylesheet"/> >>> </head> >>> .... >>> </html> >>> -- >>> View this message in context: http://www.nabble.com/header- >> contribution-ordering-t1768566.html#a4867200 >>> Sent from the Wicket - User forum at Nabble.com. >>> >>> >>> >>> _______________________________________________ >>> Wicket-user mailing list >>> [EMAIL PROTECTED] >>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>> >> >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Wicket-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
