I am using Wicket’s DataTable for table creation. When I see the souce code of the final HTML file, it shows<wicket:container wicket:id="topToolbars"><wicket:panel>tags under table element. How do I prevent showing this in the final HTML source?
I am using Wicket’s DataTable for table creation. When I see the souce code
Share
If you run your Wicket application in deployment mode, these tags will be stripped on rendering. They’re shown in development mode.
This mode is controlled by an init parameter. If you’re using a
WicketFilteras is most commonly recommended these days, you can set this inweb.xmlbyYour filter might of course have other init params, as mine does, but I’ve omitted them here.
I believe the same parameter applies if your using the
WicketServlet. The behavior can also be controlled by other means, such as setting a system property, or by overridinggetConfigurationTypein yourWebApplicationsubclass, but this is likely the easiest way.This parameter defaults to “development”, which gives what you’re seeing.