autolink has been edited by Thomas Singer (May 23, 2007). Change summary: added link to WICKET-581 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 out-of-the-box when the reference points to static resources outside the WEB-INF/classes/ directory. For a work-around, please take a look at WICKET-581 |
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