Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
6.10.0
-
None
-
Windows 2008 Server, JDK 1.7_u11 64bit, Glassfish 3.1.2.2
Description
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);