[
https://issues.apache.org/jira/browse/WICKET-5885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14500191#comment-14500191
]
Matthias Braun commented on WICKET-5885:
----------------------------------------
This problem only seems to occur in combination with a wicket:enclosure
referencing another component
> 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
>
> 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)