You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2017/06/05 10:19:04 UTC
[jira] [Resolved] (WICKET-6392) Can not change Model when form has
Validation Errors
[ https://issues.apache.org/jira/browse/WICKET-6392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-6392.
-------------------------------------
Resolution: Not A Problem
Please use users@wicket.apache.org for help related questions.
Or StackOverflow with tag 'wicket'.
If you want to suggest changes in the current APIs then the best place is dev@wicket.apache.org.
Thank you!
> Can not change Model when form has Validation Errors
> ----------------------------------------------------
>
> Key: WICKET-6392
> URL: https://issues.apache.org/jira/browse/WICKET-6392
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 8.0.0-M6
> Reporter: Kamil
>
> I have a Modal with Form and Submit button (it is used for creating new users).
> Form has several text fields bound to CompoundPropertyModel.
> Everytime I open the Modal, I set the ModelObject as new User();
> It works fine (fields "see" new model if I cancel the window or if I sumbit it without erors).
> If Form has validation errors, even if i set compoundModel.setObject(new User()); fields have old value and validation erros are present.
> I found [workaround|https://stackoverflow.com/questions/8879775/apache-wicket-how-to-update-model-after-validation-error] but I believe it should be possible with Wicket without "workarounds"
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)