see here [1] for some info and work that has been done till date. if you would like to help us with this you would be most welcome
[1] https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1532568&group_id=119783
-Igor
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>
I'm lost as to how to get my images to read correctly.
Thanks for any help with this, and thanks for a very nice framework!
-Jerry
-------------------------------------------------------------------------
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
------------------------------------------------------------------------- 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