|
Page Edited :
WICKET :
How to remove wicket markup from output
How to remove wicket markup from output has been edited by Tauren Mills (Jan 17, 2009). Change summary: Added info on removing wicket markup on a single page and cleaned up wiki entry IntroductionAll relevant Wicket tags and attributes must be in the wicket namespace, wicket:id="myLabel" or <wicket:panel>. Most browsers simply ignore HTML tags and attributes they don't know, which is why it doesn't harm that Wicket by default copies information into the HTML output generated. And it comes handy while tracing bugs. However for the output to be HTML compliant, there must be a means to remove Wicket-specific information not relevant for the client browser from markup. XHTML shouldn't be a problem because all wicket-specific information is cleanly separated by using the wicket namespace, but not all browsers support XHTML well enough not to stumble over them. Change to deployment modeThe simplest way to remove all wicket tags is to simply change your application from development mode to deployment mode. In your web.xml file, the following sets your application into development mode, which includes all wicket tags and provides an AJAX debugger. <context-param>
<param-name>configuration</param-name>
<param-value>deployment</param-value>
</context-param>
The following sets your application into deployment mode, which removes all wicket tags. It also removes the AJAX debugger. <context-param>
<param-name>configuration</param-name>
<param-value>development</param-value>
</context-param>
See the Deployment FAQ
|
Unsubscribe or edit your notifications preferences
