Hi,

Button.java javadoc says that the model is used as a label for the button
by using it as "value" attribute [1] [2].
And I always thought that <button value="..."> is indeed used as a label.
But I just tried:

<button>One</button>
<button value="Two"></button>

in a plain .html and the second one doesn't have its label.

Have HTML changed at some point or me and the original author of
Button.java have read the wrong book ?


1.
https://github.com/apache/wicket/blob/e79fcb8787187108e8a16b2ae9ababecfcc76cf2/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Button.java#L81
2.
https://github.com/apache/wicket/blob/e79fcb8787187108e8a16b2ae9ababecfcc76cf2/wicket-core/src/main/java/org/apache/wicket/markup/html/form/Button.java#L199-L202

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

Reply via email to