|
autolink has been created by Thomas Singer (May 22, 2007). Content:Wicket has an feature to automatically convert static references in the HTML markup to dynamic links. To only convert some references to dynamic links, surround the HTML markup parts by <wicket:link>...</wicket:link> tags: <html>
<head>
<title>Title</title>
</head>
<body>
<wicket:link>
<a href="" class="code-quote">"AnotherPage.html">Go to another page</a>
</wicket:link>
</body>
</html>
To convert all links in all markups, set the corresponding property in the markup settings: public class OurApplication extends WebApplication { ... protected void init() { ... getMarkupSettings().setAutomaticLinking(true); ... } ... } Unfortunately, it seems not to work (yet) when the reference points to targets of parent directories or to static resources outside the WEB-INF/classes/ directory (see http://www.nabble.com/-t3761166.html |
Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request
Unsubscribe or edit your notifications preferences
Unsubscribe or edit your notifications preferences
