[
https://issues.apache.org/jira/browse/WICKET-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664377#action_12664377
]
Adriano dos Santos Fernandes commented on WICKET-2021:
------------------------------------------------------
> if we apply your patch then all invalid components would always lose their
> input and be redrawn blank, obviously not something we want.
Why? Did you run my test?
Note, onError calls target.addComponent(form) and the values are not lost. From
my understanding (as the component user), the raw values should be maintained
when rendering the component, but not on subsequent requests.
> When a form is not valid, the textfields become with "raw input" and can't
> change its model on subsequent requests
> ------------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-2021
> URL: https://issues.apache.org/jira/browse/WICKET-2021
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC1
> Reporter: Adriano dos Santos Fernandes
> Assignee: Igor Vaynberg
> Fix For: 1.5-M1
>
> Attachments: formvalidationtest.tar.gz, patch.diff
>
>
> Quickstart attached. To reproduce:
> 1) Open the homepage
> 2) Enter something on the second field and click submit
> 3) An error is displayed - the first field is required
> 4) Click changeModel (that doesn't submit the form)
> 5) The labels update, but the textfields doesn't
> Also attached a patch that seems to fix the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.