WICKET-5710 StringValidator should set 'minlength' attribute to input and textarea

(cherry picked from commit b0fc628f132158aa46751506d9f281199abf8143)