Hi, on the wiki[1] it is described how to get rid of wicket markup such as wicket:id attributes on a page basis. The solution looks like a dirty hack to me which may go wrong when for instance exceptions occur. Does anybody know of a better way?
For completeness sake, here is the code duplicated from the wiki: private boolean stripTags; public TestPage() { stripTags = Application.get().getMarkupSettings().getStripWicketTags(); } @Override protected void onBeforeRender() { Application.get().getMarkupSettings().setStripWicketTags(true); } @Override protected void onAfterRender() { Application.get().getMarkupSettings().setStripWicketTags(stripTags); } Thanks in advance, Antoine. References: [1] http://cwiki.apache.org/WICKET/how-to-remove-wicket-markup-from-output.html