that is possible but then you have to writer youre own ResourceFinder or ResourceLocator.


On 2/13/06, Thomas Singer < [EMAIL PROTECTED]> wrote:
OK, for styles, this works, but how to do that with images?

What about moving the html-files to the resources directory? Maybe there is
an easy way to tell Wicket where it should search for them.

Cheers,
Tom


Martijn Dashorst schrieb:
>  >From within style.css the references to images is always local to the
> style.
>
> So when I need to add a style.css to a wicket markup file, and I want
> previewability, I usually do something like this:
>
> <wicket:remove>
>     <style src="">> </wicket:remove>
> <style src=""
>
>
> On 2/13/06, *Johan Compagner* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     some ideas
>
>     Make those resources also PackageResources so inside the src dir.
>     Or
>     set a hard path ../../../ in Index.html to style.css and logo.png
>     And then fix that path at runtime
>
>     johan
>
>
>
>     On 2/13/06, *Tom S.* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>     wrote:
>
>         Hi,
>
>         At the moment I have following project structure:
>
>         [root]
>         + [resources]
>         | + style.css
>         | + graphic/logo.png
>         + [src]
>            + [com.blabla.pages]
>              + Index.java
>              + Index.html
>
>         Index.html references style.css and graphic/logo.png relative to
>         [resources]
>         (which is in the classpath) to ensure the resulting page can
>         reach these
>         resources. But when editing the Index.html, they are not
>         reachable, because
>         they are not available relative to the current package.
>
>         How do you manage such resources?
>
>         --
>         Cheers,
>         Tom
>
>
>         -------------------------------------------------------
>         This SF.net email is sponsored by: Splunk Inc. Do you grep
>         through log files
>         for problems?  Stop!  Download the new AJAX search engine that makes
>         searching your log files as easy as surfing the  web.  DOWNLOAD
>         SPLUNK!
>         http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>         <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
>         _______________________________________________
>         Wicket-user mailing list
>         Wicket-user@lists.sourceforge.net
>         <mailto: Wicket-user@lists.sourceforge.net>
>         https://lists.sourceforge.net/lists/listinfo/wicket-user
>         < https://lists.sourceforge.net/lists/listinfo/wicket-user>
>
>
>
>
>
> --
> Living a wicket life...
>
> Martijn Dashorst - http://www.jroller.com/page/dashorst
>
> Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to