[
https://issues.apache.org/jira/browse/WICKET-3944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov updated WICKET-3944:
------------------------------------
Attachment: wicket-statelessform-repeatingView.tgz
Here is a version with a RepeatingView.
The problem is that the page is recreated every time (because it is stateless)
and thus the ListView is completely new. So no matter what is the reuse
strategy it is always recreated. ListView populates its items in
onBeforeRender() which is *after* the form processing phase and thus there are
no TextFields in the form to process the submitted value.
RepeatingView adds its children eagerly so there is no such problem
> Textfields of Listview on StatelessForm don't get values set after submit
> with validation errors
> ------------------------------------------------------------------------------------------------
>
> Key: WICKET-3944
> URL: https://issues.apache.org/jira/browse/WICKET-3944
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.4.17
> Environment: Windows 7, Wicket 1.4.17
> Reporter: Per Newgro
> Attachments: wicket-statelessform-repeatingView.tgz,
> wicket-statelessform.zip
>
>
> I would like to create a stateless page collecting an amount and an item id
> for direct shopping. Because i don't know how many items a user wants to
> insert i use a listview with a link of adding 5 more item slots on demand.
> Now the problem:
> If i use stateless form with textfield added directly after form submit all
> is set as expected. Field value is present and error message to.
> But if i add textfield on a listview this is not working. Textfield is empty
> and error message is not present.
> I've created a quickstart and two tests for evaluation.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira