Been looking into this issue in more detail via my QuickStart application:

If HeaderContributor.forCss is used then the HTML output is:
  <link rel="stylesheet" type="text/css"
href="resources/com.mycompany.WicketApplication/skins/style.css" />

If TextTemplateHeaderContributor.forCss is used then the HTML output is:
      <style type="text/css"><!--
          #someDiv {
              width: 100px;
              height: 100px;
              background: #fff url('brandX/image.jpg') 100% 100% no-repeat;
      }--></style>

The second case 'fails' since brandX/image.jpg is kept under
resources/com.mycompany.WicketApplication/skins.

Shouldn't the output be as follows?
      <style type="text/css"><!--
          #someDiv {
              width: 100px;
              height: 100px;
              background: #fff
url('resources/com.mycompany.WicketApplication/skins/brandX/image.jpg') 100%
100% no-repeat;
      }--></style>


-- 
View this message in context: 
http://www.nabble.com/How-to-use-TextTemplateHeaderContributor.forCss-method--tp20411565p20462410.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to