Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Wicket exposes internal attributes

Tags:

wicket

I just tried the Apache Wicket "Hello, world" application and I noticed that in the rendered HTML output, Wicket is exposing it's internal attributes.

This is what the rendered HTML looks like in the 'view source' of the browser:

<html>
<body>
    <span wicket:id="message" id="message">Hello World!</span>
</body>
</html>

How do I get rid of the wicket:id="message" attribute in the rendered HTML output?

like image 786
Luke Avatar asked Dec 10 '22 12:12

Luke


1 Answers

Switch to deployment mode, e.g. in web.xml:

<context-param>
 <param-name>configuration</param-name>
 <param-value>deployment</param-value>
</context-param>
like image 98
mhaller Avatar answered Apr 02 '23 08:04

mhaller