I found this searching for the same answer and my existing code was: <input type="checkbox" wicket:id="acceptTerms"/> <label wicket:for="acceptTerms">I agree to the terms</label>
but the output is: <input type="checkbox" name="acceptTerms" id="acceptTerms5"/> <label for="acceptTerms5">I agree to the terms</label> but sometimes it seems that the id isn't set on the checkbox. I'm still trying to figure out why. (using 6.10 still) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-connect-elements-label-and-input-checkbox-tp4650304p4661648.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org