Hi *,

i would like to add a css-class to my div to display a background image. So i've added this to css

my.css
div.myimg {
   background: url("navi_items.gif") no-repeat;
   width: 12px;
   height: 10px;
   cursor: pointer;
}

The navi_items.gif is located in
- webapp
   - WEB-INF
   - webresources
      - my.css
      - navi_items.gif


If i add this to my HomePage.html
<link rel="stylesheet" href="webresources/my.css" type="text/css" media="all" />
everything works fine.

But with the following code in my HomePage i get the error message below

HomePage.java
public HomePage() {
// add .. for every package level of Application to come to application root add(HeaderContributor.forCss(new CompressedResourceReference("../../../webresources/my.css")));
}

error-message
ERROR - SharedResources - ---------------------------------------------------------------------------------------- ERROR - SharedResources - Your path looks like: ../../../webresources/my.css ERROR - SharedResources - For security reasons moving up '../' is disabled by default. Please see ERROR - SharedResources - IResourceSettings.getParentFolderPlaceholder() and PackageResourceGuard for more details ERROR - SharedResources - ---------------------------------------------------------------------------------------- WARN - PackageResource - Unable to find package resource [path = webresources/my.css, style = null, locale = null]

Setting the parentFolderPlaceholder to $up$ and use "$up$/$up$/$up$/webresources/my.css" solved the error message display but the css
is still not loaded.

This was formerly working (wicket1.3.6). With wicket-1992 and wicket1.3.7 it was disabled. But how can i load my css now?

Cheers
Per

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to