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

Matthias Braun updated WICKET-5885:
-----------------------------------
    Attachment: myproject.zip

If you start the quickstart, enter a text and press submit you see a console 
output that just says [], showing that the CheckGroup model value is an empty 
list.

If you append the URL parameter showGroup=true, the enclosure will be visible 
and pressing submit on this page causes the console output to be [A]

> Invisible CheckGroup empties the (list) model on form submit
> ------------------------------------------------------------
>
>                 Key: WICKET-5885
>                 URL: https://issues.apache.org/jira/browse/WICKET-5885
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 6.17.0
>            Reporter: Matthias Braun
>         Attachments: myproject.zip
>
>
> When you have an invisible CheckGroup inside a form the CheckGroup collection 
> model is cleared on form submit.
> This is not what I expect or want in my application. 
> The CheckGroup panel is one part of a complex form that is set to invisible 
> in a certain case of input parameters (because the user is not allowed to see 
> it). 
> The default/initial value of this CheckGroup is not an empty list, but 
> contains some items and must not be cleared on form submit because those 
> values have to be present when processing the form inputs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to