> Hi, I'm trying to mount some pages so the URL is more user friendly.
> Now, what I have to do for resources like images and css?. I have a
> images directory in the root of webapp and the css file is in the
> root to.

just include it as a relative resource. If you look at
Wicket-examples, you'll notice that the pages have a head section with
a css section like:

<link rel="stylesheet" type="text/css" href="style.css"/>

which is converted to e.g:

<link href="/wicket-examples/style.css" type="text/css" rel="stylesheet"/>

at runtime.
In the same fashion, putting:

<img src="Image1.gif" />

in your page will be translated to e.g:

<img src="/wicket-examples/Image1.gif" />

at runtime.
If you want to put the resources in the same package, you can use
<wicket:link> sections or add them as e.g. resource references.

Eelco

> One thing is move all at the same level of a java class and mount there.
> Other can be use a wicket resource and replace the path to the file
> in the html template.
> Is any other more simple that not implies modify the html templates?.
>
> Thanks in advice.
>
> PS: the wiki show examples of mountSharedResource but I don't known
> if this is what I need.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to