wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bas Gooren <...@iswd.nl>
Subject Re: Contributing comments to the head section
Date Fri, 10 Feb 2012 20:44:52 GMT
You can always opt for a either

- a label (with setRenderBodyOnly(true)) which renders it
- a header contributor

Both of these could use either a hardcoded bit of html in which you 
replace ${urlForCss} with the result of a call to urlFor(...). You can 
also store this html as a text template, in your cms, etc.

Bas

Op 10-2-2012 21:41, schreef Chris Colman:
>
> We've been doing 'header contribution' for some time now and this 
> works fine with things like <link> and <meta> but what if we wanted to 
> control a 'comment' that is rendered to the header. Is there any 
> special mechanism in wicket for doing this or are comments you set up 
> in your base class mark up.
>
> Some of the CSS templates we use required code with 'wrapping 
> conditional comments' like:
>
> <!--[if lt IE 8]><link wicket:id="ieFixStyle" rel="stylesheet" 
> type="text/css" media="screen, projection" href="" /><![endif]-->
>
> tobe in the header which we have been able to set up in the base 
> markup as the comment part is pretty static. We now have a need to 
> customize the comment part at runtime to support different CSS 
> templates that have different requirements for the 'wrapping comment'. 
> Is this possible?
>
> Yours sincerely,
>
> Chris Colman
>
> Pagebloom Team Leader,
>
> Step Ahead Software
>
> pagebloom - your business & your website growing together
>
> Sydney:(+61 2) 9656 1278 Canberra: (+61 2) 6100 2120
>
> Email: chrisc@stepahead.com.au <mailto://chrisc@stepahead.com.au>
>
> Website:
>
> http://www.pagebloom.com <blocked::http://www.pagebloom.com/>
>
> http://develop.stepaheadsoftware.com 
> <blocked::http://develop.stepaheadsoftware.com/>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message