You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Alexander Morozov (JIRA)" <ji...@apache.org> on 2013/08/26 07:29:52 UTC
[jira] [Updated] (WICKET-5329) "Required" flag initialized too
early in PropertyValidator
[ https://issues.apache.org/jira/browse/WICKET-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Morozov updated WICKET-5329:
--------------------------------------
Attachment: fix-WICKET-5329.patch
Please, review and apply patch.
> "Required" flag initialized too early in PropertyValidator
> ----------------------------------------------------------
>
> Key: WICKET-5329
> URL: https://issues.apache.org/jira/browse/WICKET-5329
> Project: Wicket
> Issue Type: Bug
> Components: wicket-bean-validation
> Affects Versions: 6.10.0
> Environment: Windows 2008 Server, JDK 1.7_u11 64bit, Glassfish 3.1.2.2
> Reporter: Alexander Morozov
> Assignee: Igor Vaynberg
> Attachments: fix-WICKET-5329.patch
>
>
> Method PropertyValidator#setComponentRequiredFlag() called inside #bind() implementation causes ISE exception ("Could not resolve Property from component...") in #getProperty() in case, when component wasn't added to page hierarchy yet:
> Form<Person> form = new Form<>("form", new CompoundPropertyModel(person));
> TextField<String> requiredField = new TextField<>("firstName");
> requiredField.add(new PropertyValidator()); // ISE !
> form.add(requiredField);
> add(form);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira