[ 
https://issues.apache.org/jira/browse/WICKET-3100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919821#action_12919821
 ] 

Pedro Santos commented on WICKET-3100:
--------------------------------------

The DropDownChoice component tests the component structure for some form 
component. If one is found, it is set to be submitted at the onchange event.
As in your second page the DropDownChoice component is on a form, the textfield 
component on the same form will receive an empty string on the form submit 
parameters. This value is maintained as the raw input at the form and presented 
on the textfield at the next render.

> Value of a TextField is not updated after model changes within a Form
> ---------------------------------------------------------------------
>
>                 Key: WICKET-3100
>                 URL: https://issues.apache.org/jira/browse/WICKET-3100
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.10
>         Environment: Mac OS X Snow Leopard, Java 1.6.x
>            Reporter: Koen Molkenboer
>         Attachments: wicket-bug.zip
>
>
> I have a page with a TextField and a DropDownChoice, when the selection of 
> the DropDownChoice changes I want to update the value of the TextField by 
> changing the model. 
> This does not work if those components are part of a Form, without the use of 
> the Form it is working.
> See the attachment for the source code.

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