Is the patch that Al Maw came up with in
any builds? From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg this is a known problem
that we are working to fix. basically the css file needs to be parsed for these
urls and they should be changed to packaged resources. On 8/30/06, Jerry Smith
<[EMAIL PROTECTED]> wrote: I'm
working on making a reusable component that is styled with a CSS file that
references some images. I've been looking for a solution to this, and I
think it's just that I'm having a disconnect in dealing with Resources.
Here's a simple version of what I'm trying to do: Component.jar
contains: com/comp/MyComponent.java com/comp/MyComponent.html com/comp/MyComponent.css com/comp/MyImage1.jpg com/comp/MyImage2.jpg MyComponent.css .myclass1
{
Background: url(MyImage2.jpg); // What do I put here? } .myclass2
{
Background: url(MyImage2.jpg); // What do I put here? } How
do I code the rest of my component to get this to work? I've gotten it to
read the .css file by doing:
getApplication().getSharedResources().putClassAlias(getClass(),
"mycomponent");
add(HeaderContributor.forCss(getClass(), "MyComponent.css")); And
that puts a nice entry in the header that works like: <link rel="stylesheet" type="text/css" href=""> "/test/app/resources/mycomponent/MyComponent.css"></link>
|
------------------------------------------------------------------------- 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user