[ 
https://issues.apache.org/jira/browse/WICKET-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg resolved WICKET-2021.
-----------------------------------

       Resolution: Invalid
    Fix Version/s: 1.5-M1
         Assignee: Igor Vaynberg

what you see is the intended behavior. if the component is in error it 
preserves its raw input until it can be validated.

if you wish to change the model object of an invalid component and wish it to 
reflect the new value you should call clearinput() manually.

if we apply your patch then all invalid components would always lose their 
input and be redrawn blank, obviously not something we want.

> 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.

Reply via email to