...
When the form is created, I add each element Panel to a ListView, which is then iterated over in the markup.
The ListView has to use optimizedItemRemovel (see: Listviews in a form Using listviews) or form components will forget their content.
...