You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Rob Audenaerde (JIRA)" <ji...@apache.org> on 2015/09/29 09:28:04 UTC
[jira] [Comment Edited] (WICKET-5987) StringLengthValidator does
not validate, but cuts off input
[ https://issues.apache.org/jira/browse/WICKET-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14934789#comment-14934789 ]
Rob Audenaerde edited comment on WICKET-5987 at 9/29/15 7:27 AM:
-----------------------------------------------------------------
Ah I see.
I think I made a mistake during pasting in the PasswordField; I could not see it because it renders only password-characters.
The issue is less of a problem now, but I think it is still a good idea to remove the {{maxLengh}} from the {{input}} if {{type}} is {{password}}, because the user has no visual feedback on what he did wrong. In my case: could not log in, because the last characters got chopped off.
What do you think?
was (Author: robau):
Ah I see.
I think I made a mistake during pasting in the PasswordField; I could not see it because it renders only password-characters.
The issue is less of a problem now, but I think it is still a good idea to remove the {{maxLengh}} from the {{input}} if {{type}} is {{password}}, because the used has no visual feedback on what he did wrong (in my case: could not log in). What do you think?
> StringLengthValidator does not validate, but cuts off input
> -----------------------------------------------------------
>
> Key: WICKET-5987
> URL: https://issues.apache.org/jira/browse/WICKET-5987
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 7.0.0
> Environment: ubuntu 14.04 LTS, Chrome 45, Java 8
> Reporter: Rob Audenaerde
> Assignee: Martin Grigorov
> Attachments: stringlenghttest.zip
>
>
> I have a change-password-page with a PasswordField with a StringValidator.lengthBetween( 3, 20 ).
> I ran into an error where I could paste a long password (>20 chars), and Wicket not throwing errors, but cutting the password to length 20.
> Wicket version: 7.0
> Chrome: 45
> The maxlength is rendered as attribute on the element.
> <input id="password" type="password" name="password" value="" maxlength="20" minlength="3">
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)