Use jQuery#on().

jQuery#bind() is deprecated
WICKET-5289 setRequired(true) should add the HTML5 "required" attribute on <input> and <textarea> elements
Java 7 diamonds
Add Apache licence.

Fix test expectation.