Hi all,
I'm wondering if I can refer to static files just from HTML, while
keeping it aware of the context.
Example:
.jar contains /favicon.ico .
I'd like to refer to it by <link rel="..." href="/favicon.ico">.
But when the app is at non-root context, this breaks as it still points
to http://host/favicon.ico .
So it needs some Java code.
a) Either <wicket:link>, which AFAIK can only make it bound to a component.
b) Or custom ExternalLink with setContextRelative( true ) which would
create the URL.
c) Or a shared resource mounted to /favicon.ico.
But the task seems to be so trivial that I wonder - Did I overlook some
accordingly trivial solution, not involving Java?
And not relying on text replacement, e.g. by Maven, having <link
rel="..." href="${context}/favicon.ico"> in HTML. (That would be
acceptable if it was done by Wicket.)
Thanks,
Ondra
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]