[
https://issues.apache.org/jira/browse/WICKET-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
RĂ¼diger Schulz updated WICKET-322:
----------------------------------
Attachment: PasswordTextField.java
I applied the change as was described on the mailinglist by Johan, and this
really seems to solve the issue.
But I'm not sure if this breaks something else then...
> Odd behvavior with PasswordTextField evaluation
> -----------------------------------------------
>
> Key: WICKET-322
> URL: https://issues.apache.org/jira/browse/WICKET-322
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.2.5
> Environment: Jetty 6, JDK 1.5
> Reporter: RĂ¼diger Schulz
> Attachments: PasswordTextField.java
>
>
> Given a sign-up form with a password field like this:
> PasswordTextField passwordField = new PasswordTextField("password");
> passwordField.setRequired(true);
> passwordField.add(StringValidator.lengthBetween(5, 32));
> I observe a rather odd behavior:
> 1) enter 5 characters, submit. Other fields in the form have errors, so the
> form is redisplayed.
> 2) delete a character, submit. Error is displayed, but the value of the field
> is what I entered in step 1.
> 3) result: submitting again just works, which shouldn't be the case with any
> form displaying an error.
> This is especially irritating if you do the form validation via Ajax after
> onblur, so it would be nice if this could be changed somehow.
> See also here:
> http://www.nabble.com/PasswordTextField.setResetPassword-tf1399513.html#a3764720
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.